(free_mem): Also free filename.