aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-05-29 14:19:22 +0200
committerEven Rouault <even.rouault@spatialys.com>2017-05-29 14:19:22 +0200
commit95ffe331a196fc7c075c2a40922dbd0d312de426 (patch)
treee2b0d1a67c32eebef713195b3fb679141fca226f
parent903069a6f4efec666a4dbfb3b2d375caf9e32dbe (diff)
downloadPROJ-95ffe331a196fc7c075c2a40922dbd0d312de426.tar.gz
PROJ-95ffe331a196fc7c075c2a40922dbd0d312de426.zip
PJ_ob_tran.c: fix memory leak in freeup_new() function. Found when running 'make check' on a build with -fsanitize=undefined,address
-rw-r--r--src/PJ_ob_tran.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PJ_ob_tran.c b/src/PJ_ob_tran.c
index eae3ab1d..afac5136 100644
--- a/src/PJ_ob_tran.c
+++ b/src/PJ_ob_tran.c
@@ -86,7 +86,7 @@ static void *freeup_new (PJ *P) { /* Destructor */
return pj_dealloc (P);
if (P->opaque->link)
- pj_dealloc (P->opaque->link);
+ P->opaque->link->pfree(P->opaque->link);
pj_dealloc (P->opaque);
return pj_dealloc(P);