aboutsummaryrefslogtreecommitdiff
path: root/src/nad_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nad_init.c')
-rw-r--r--src/nad_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nad_init.c b/src/nad_init.c
index a84b0387..0a28e200 100644
--- a/src/nad_init.c
+++ b/src/nad_init.c
@@ -122,6 +122,7 @@ struct CTABLE *nad_ctable_init( projCtx ctx, PAFile fid )
|| pj_ctx_fread( ctx, ct, sizeof(struct CTABLE), 1, fid ) != 1 )
{
pj_ctx_set_errno( ctx, -38 );
+ pj_dalloc( ct );
return NULL;
}
@@ -130,6 +131,7 @@ struct CTABLE *nad_ctable_init( projCtx ctx, PAFile fid )
|| ct->lim.phi < 1 || ct->lim.phi > 100000 )
{
pj_ctx_set_errno( ctx, -38 );
+ pj_dalloc( ct );
return NULL;
}