aboutsummaryrefslogtreecommitdiff
path: root/src/apps
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-11-18 09:57:42 +0100
committerKristian Evers <kristianevers@gmail.com>2020-11-20 16:40:40 +0100
commit43efca4ab87fb37a0931edcb6be11c0bd3784098 (patch)
treeb334bdb4d6898b740fbb4f300e6753a3d0878aff /src/apps
parentddb3b8da0756acbb8713aeb452de209eb350e996 (diff)
downloadPROJ-43efca4ab87fb37a0931edcb6be11c0bd3784098.tar.gz
PROJ-43efca4ab87fb37a0931edcb6be11c0bd3784098.zip
Remove pj_free() and move it's functional parts to proj_destroy()
Diffstat (limited to 'src/apps')
-rw-r--r--src/apps/cct.cpp2
-rw-r--r--src/apps/proj.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/apps/cct.cpp b/src/apps/cct.cpp
index fa75267a..e63a5fc2 100644
--- a/src/apps/cct.cpp
+++ b/src/apps/cct.cpp
@@ -387,7 +387,7 @@ int main(int argc, char **argv) {
buf = static_cast<char*>(calloc (1, 10000));
if (nullptr==buf) {
print (PJ_LOG_ERROR, "%s: Out of memory", o->progname);
- pj_free (P);
+ proj_destroy (P);
free (o);
if (stdout != fout)
fclose (fout);
diff --git a/src/apps/proj.cpp b/src/apps/proj.cpp
index c9bd8950..8bfd99a3 100644
--- a/src/apps/proj.cpp
+++ b/src/apps/proj.cpp
@@ -562,7 +562,7 @@ int main(int argc, char **argv) {
}
if( Proj )
- pj_free(Proj);
+ proj_destroy(Proj);
exit(0); /* normal completion */
}