I am experimenting with memory allocation and deletion and had a question about how to properly delete/free memory. Below is a very small and working bit of code:
It depends on compiler you use. For some compiler, memory deleted is hold by application, not returning to OS immediately.
Sorry that I cannot find an official link about it now.