aboutsummaryrefslogtreecommitdiff
path: root/src/multistresstest.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/multistresstest.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/multistresstest.c')
-rw-r--r--src/multistresstest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/multistresstest.c b/src/multistresstest.c
index 8fb764e2..ddbbb033 100644
--- a/src/multistresstest.c
+++ b/src/multistresstest.c
@@ -363,6 +363,7 @@ static int do_main(void)
{
printf( "Unable to translate:\n%s\n", test->src_def );
test->skip = 1;
+ pj_free (dst_pj);
continue;
}
@@ -370,6 +371,7 @@ static int do_main(void)
{
printf( "Unable to translate:\n%s\n", test->dst_def );
test->skip = 1;
+ pj_free (src_pj);
continue;
}