Skip to content

Commit

Permalink
Deallocate warp_extras at end of _reproject() (#2980)
Browse files Browse the repository at this point in the history
Resolves new report in #494
  • Loading branch information
sgillies committed Dec 8, 2023
1 parent b8911b2 commit 069d880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,8 @@ Changes
Next
----

- Deallocate list of warp extras in _reproject(), fixing a potential leak
(#494).
- Adjust several tests to small differences in output between GDAL 3.7 and 3.8
(#2959).
- The output file size limits of rio-warp were made redundant by changes to the
Expand Down
1 change: 1 addition & 0 deletions rasterio/_warp.pyx
Expand Up @@ -592,6 +592,7 @@ def _reproject(

GDALDestroyWarpOptions(psWOptions)
CPLFree(imgProjOptions)
CSLDestroy(warp_extras)

if mem_raster is not None:
mem_raster.close()
Expand Down

0 comments on commit 069d880

Please sign in to comment.