diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-06-08 14:46:24 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-06-08 14:46:24 +0200 |
| commit | fa52fe3cef2cb435db08f09a084b8b9611e4392a (patch) | |
| tree | e1377050abe32589ce9676d34aa48abbb451789b | |
| parent | 5e73c1801829f61ef80bb9ea4dfe3f6bac4a8f51 (diff) | |
| download | PROJ-fa52fe3cef2cb435db08f09a084b8b9611e4392a.tar.gz PROJ-fa52fe3cef2cb435db08f09a084b8b9611e4392a.zip | |
pj_gridlist_from_nadgrids(): fix memory leak in error code path. Credit to OSS Fuzz
| -rw-r--r-- | src/pj_gridlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
