[GRASS5] Module memory management - G_set_error_routine()
Brad Douglas
rez at touchofmadness.com
Thu Mar 24 16:14:22 EST 2005
On Thu, 2005-03-24 at 20:18 +0000, Glynn Clements wrote:
> > Besides, it's just very bad practice not to explicitly free resources.
>
> Explicitly free()ing memory when you know that the process is about to
> terminate is a waste of CPU cycles. free() simply re-arranges
> user-space data structures, i.e. adding the memory block to the free
> list. Upon termination, the process' memory is going to vanish, so
> there is no point in rearranging it.
Bah. I've been in kernel-space far too long writing device drivers. I
take back everything I said. Now to go un-complicate my work...
--
Brad Douglas <rez at touchofmadness.com>
More information about the grass-dev
mailing list