Fixed free non-malloc problem