last changes to rename memfree to free