From 98ebe9adb5369c728d6d7f9d06ca67592c089b0a Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Tue, 19 Nov 2002 20:33:42 +0000 Subject: cleanup before exit to facilitate memory leak testing git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1038 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/cs2cs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/cs2cs.c b/src/cs2cs.c index 54c63f6f..a42d44f9 100644 --- a/src/cs2cs.c +++ b/src/cs2cs.c @@ -29,6 +29,9 @@ ****************************************************************************** * * $Log$ + * Revision 1.5 2002/11/19 20:33:42 warmerda + * cleanup before exit to facilitate memory leak testing + * * Revision 1.4 2001/04/05 19:32:19 warmerda * use projPJ, and pj_is_latlong() * @@ -408,5 +411,13 @@ int main(int argc, char **argv) fclose(fid); emess_dat.File_name = 0; } + + if( fromProj != NULL ) + pj_free( fromProj ); + if( toProj != NULL ) + pj_free( toProj ); + + pj_deallocate_grids(); + exit(0); /* normal completion */ } -- cgit v1.2.3