[mapserver-dev] msCleanup()

Frank Warmerdam warmerdam at pobox.com
Tue Nov 19 15:45:18 EST 2002


I have introduced an msCleanup() function which I intend to cleanup
dynamically allocated resources that are not tied to a map instance.  It
is to be called by applications as the terminate in situations where we want
to do memory leak testing.  I have added it to shp2img, so I can use shp2img
for testing for memory leaks.

Currently msCleanup() unloads datum shift grids (from PROJ) and unregisters
GDAL drivers.

Memory leak testing with valgrid shows things are pretty good.  There is a
chunk of memory allocated by the parser that isn't recovered, but I don't
want to try and fix it since it is non-recurring (I think), and might be
different depending on what yacc is used to generate the auto-generated

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the mapserver-dev mailing list