I'd like to know if freeing your whole program upon exit is a good practice or not. Of course I know memory is reclaimed by the system anyway.
Here, I'd like to know if quite experienced C developers tend to encourage such practice or not.
Thanks.
I'd like to know if freeing your whole program upon exit is a good practice or not. Of course I know memory is reclaimed by the system anyway.
Here, I'd like to know if quite experienced C developers tend to encourage such practice or not.
Thanks.
You should always clean up your memory. Don't rely on an operating system to do it.
Going forward, you might find your program being part of an environment where the memory is not freed for you, and retro-fitting such code could prove tricky.