aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2002-11-19 20:33:42 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2002-11-19 20:33:42 +0000
commit98ebe9adb5369c728d6d7f9d06ca67592c089b0a (patch)
treeb15a4094d90a0136607ddad47d6e74140cd2b395 /src
parentc59bfc65698749d33cd723de04b365d12abd41b8 (diff)
downloadPROJ-98ebe9adb5369c728d6d7f9d06ca67592c089b0a.tar.gz
PROJ-98ebe9adb5369c728d6d7f9d06ca67592c089b0a.zip
cleanup before exit to facilitate memory leak testing
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1038 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
-rw-r--r--src/cs2cs.c11
1 files changed, 11 insertions, 0 deletions
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 */
}