Skip to content

Commit

Permalink
PJ_ob_tran.c: fix memory leak in freeup_new() function. Found when ru…
Browse files Browse the repository at this point in the history
…nning 'make check' on a build with -fsanitize=undefined,address
  • Loading branch information
rouault committed May 29, 2017
1 parent 903069a commit 95ffe33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PJ_ob_tran.c
Expand Up @@ -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);
Expand Down

0 comments on commit 95ffe33

Please sign in to comment.