diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-01-03 01:06:31 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-01-04 10:49:14 +0100 |
| commit | d89a6ab2f3f26d1451971369b0ccfc4eb322729d (patch) | |
| tree | 75cc3a14a65b4993559b0d11d7e25a7de9016c43 /src/malloc.cpp | |
| parent | 00de4660a75a9d89c98778cf84f94075b7eef0b9 (diff) | |
| download | PROJ-d89a6ab2f3f26d1451971369b0ccfc4eb322729d.tar.gz PROJ-d89a6ab2f3f26d1451971369b0ccfc4eb322729d.zip | |
Fix use-after-free in debug logging of pj_ellipsoid() (probably caused by a recent master commit)
Diffstat (limited to 'src/malloc.cpp')
| -rw-r--r-- | src/malloc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/malloc.cpp b/src/malloc.cpp index 6bd4639e..817f8f20 100644 --- a/src/malloc.cpp +++ b/src/malloc.cpp @@ -219,6 +219,12 @@ PJ *pj_default_destructor (PJ *P, int errlev) { /* Destructor */ if (nullptr==P) return nullptr; + + pj_dealloc(P->def_size); + pj_dealloc(P->def_shape); + pj_dealloc(P->def_spherification); + pj_dealloc(P->def_ellps); + /* free grid lists */ pj_dealloc( P->gridlist ); pj_dealloc( P->vgridlist_geoid ); |
