From 95ffe331a196fc7c075c2a40922dbd0d312de426 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 29 May 2017 14:19:22 +0200 Subject: PJ_ob_tran.c: fix memory leak in freeup_new() function. Found when running 'make check' on a build with -fsanitize=undefined,address --- src/PJ_ob_tran.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3