Skip to content

Commit

Permalink
missing free
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jun 7, 2024
1 parent bfe0d00 commit fbf3618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inst/include/gdalreadwrite/gdalreadwrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ inline CharacterVector gdal_create(CharacterVector filename, CharacterVector dri

GDALDataset *poDS;
poDS = outDriver->CreateCopy(filename[0], poVrtDS, false, papszOptions, NULL, NULL);
CPLFree(papszOptions);
if( poDS != NULL )
GDALClose( (GDALDatasetH) poDS );

Expand Down

0 comments on commit fbf3618

Please sign in to comment.