From fa52fe3cef2cb435db08f09a084b8b9611e4392a Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 8 Jun 2017 14:46:24 +0200 Subject: pj_gridlist_from_nadgrids(): fix memory leak in error code path. Credit to OSS Fuzz --- src/pj_gridlist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/pj_gridlist.c b/src/pj_gridlist.c index 6b7e2ffa..39ed200d 100644 --- a/src/pj_gridlist.c +++ b/src/pj_gridlist.c @@ -209,6 +209,7 @@ PJ_GRIDINFO **pj_gridlist_from_nadgrids( projCtx ctx, const char *nadgrids, &grid_max) && required ) { + pj_dalloc( gridlist ); pj_ctx_set_errno( ctx, -38 ); pj_release_lock(); return NULL; -- cgit v1.2.3