Removing small memory leaks (Gines)