I have been reading about the malloc() and free() instructions and I am kind of worried of "forgetting" to free() memory I have reserved. It sounds very easy to create programs with memory leaks when you start using those instructions!
I have a couple of questions:
If I forget to free() memory allocated with malloc()...
When the engine shuts down will all that reserved memory that still has not been released with "free()" stay "blocked" forever untill I turn off my computer?
Or when the program is closed, will the engine automatically "free()" all the memory that was still reserved because I forgot to release it?