I was working on a piece of code and I was attacked by a doubt: What happens to the memory allocated to a pointer if I assign NULL to that pointer?
For instance:
On most modern OSs, the application's memory will be reclaimed at exiting the application. Meanwhile, you have a memory leak.