aboutsummaryrefslogtreecommitdiff
path: root/src/pj_malloc.c
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-10-03 13:47:11 +0200
committerThomas Knudsen <thokn@sdfe.dk>2017-10-06 11:48:54 +0200
commitca84e57463cacaa0d6b8f81b11ca6714c77e88c5 (patch)
tree02459a5c44d958ffae90d13dc5550b06e35d9209 /src/pj_malloc.c
parent664577ced6a8e4074b1f53af82b5ae5d1d189eac (diff)
downloadPROJ-ca84e57463cacaa0d6b8f81b11ca6714c77e88c5.tar.gz
PROJ-ca84e57463cacaa0d6b8f81b11ca6714c77e88c5.zip
Enable address sanitizer in linux/clang build
Elim some leaks by initializing PJ.destructor in PJ_ob_tran.c properly Avoid tests bombing when built with address sanitizer: Repair memory leak in test228.c Avoid tests bombing when built with address sanitizer: Repair memory leak in multistresstest.c
Diffstat (limited to 'src/pj_malloc.c')
-rw-r--r--src/pj_malloc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pj_malloc.c b/src/pj_malloc.c
index 9c69257f..75d05378 100644
--- a/src/pj_malloc.c
+++ b/src/pj_malloc.c
@@ -161,7 +161,6 @@ void *pj_default_destructor (PJ *P, int errlev) { /* Destructor */
if (0==P)
return 0;
-
/* free grid lists */
pj_dealloc( P->gridlist );
pj_dealloc( P->vgridlist_geoid );