No, you have to manually deallocate the allocated memory. The allocated memory is managed my memory management function and memory allocates from the heap memory.