aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/proj.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 95839cf7..a4c7c217 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-04 Frank Warmerdam <warmerdam@pobox.com>
+
+ * src/proj.c: pj_free() the definition to simplify leak testing.
+
2007-04-04 Frank Warmerdam <warmerdam@pobox.com>
* src/PJ_laea.c: Fix memory leak of apa field.
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 */
}