removed wrong free memory line