aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordusanjovic <dusanjovic@users.noreply.github.com>2017-03-08 14:01:04 -0500
committerGitHub <noreply@github.com>2017-03-08 14:01:04 -0500
commit5fe8676275e5c505614fb7501087f1e9e1543a77 (patch)
tree5dc94a1bae21dcebe2aded59d74f775f6de63a87 /src
parent2c62ff2e3de1cc31ed6bf6b0151a37fc88407059 (diff)
downloadPROJ-5fe8676275e5c505614fb7501087f1e9e1543a77.tar.gz
PROJ-5fe8676275e5c505614fb7501087f1e9e1543a77.zip
fix memory leak in PJ_ob_tran.c (in freeup_new)
freeup_new must not return before both P->opaque and P are deallocated.
Diffstat (limited to 'src')
-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 b0c22f66..eae3ab1d 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)
- return pj_dealloc (P->opaque->link);
+ pj_dealloc (P->opaque->link);
pj_dealloc (P->opaque);
return pj_dealloc(P);