Security added in free_memory.
Last commit should be "Rewritten free_memory" :<