Memory leak updated