FIXED THE MEMORY LEAK