Added missing free()