Dear all,
I have a C programm :-)
Lots of gtk widgets and I'm afraid global
variables :-) When quitting, a good
amount of memory is still allocated: is
it restored when the program terminates?
I mean, does the OS take care of that
or should I carefully deallocate everything?
During runtime the amount of this "base"
allocated memory doesn't increase. I can check
that most of the "runtime" memory is properly
deallocated: the program does that (as
it does it between every change of main state).
When I use "free" before and after call
(it shows the amount of memory used), there
is an increase of about 2.5M which seems at lot
to me (who started programming 20 years back
with flexible disks :-p)). The cache on the other
side does almost not increase.
In case of relevance: this is linux (debian sarge).
Best !
Amities,
Olivier