[GRASS5] Module memory management - G_set_error_routine()

Glynn Clements glynn at gclements.plus.com
Mon Mar 21 18:08:01 EST 2005


Brad Douglas wrote:

> Would it be acceptable practice to use the following function to free
> memory resources before exit (for fatal errors)?

The OS automatically recovers the process' memory when the process
terminates.

If you want to perform specific tasks (e.g. deleting temporary files)
upon termination, use atexit().

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list