aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2007-06-04 16:33:58 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2007-06-04 16:33:58 +0000
commitd41f9896cfdc205e2f9af318c1416717f4671519 (patch)
tree1dd9ac2e4d741c5eba20c07435c9870942dfc60e /src
parente3b8e5bd262ca43a9dd3bcb2488dbd4d78960afa (diff)
downloadPROJ-d41f9896cfdc205e2f9af318c1416717f4671519.tar.gz
PROJ-d41f9896cfdc205e2f9af318c1416717f4671519.zip
pj_free() the definition to simplify leak testing.
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1399 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
-rw-r--r--src/proj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proj.c b/src/proj.c
index cdfee821..e9381cba 100644
--- a/src/proj.c
+++ b/src/proj.c
@@ -496,5 +496,7 @@ int main(int argc, char **argv) {
(void)fclose(fid);
emess_dat.File_name = 0;
}
+ if( Proj )
+ pj_free(Proj);
exit(0); /* normal completion */
}