Skip to content

Commit

Permalink
GTiff: fix memory leak when trying to open COG in update mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 27, 2024
1 parent 87db11e commit a39256b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frmts/gtiff/gtiffdataset_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3928,6 +3928,7 @@ GDALDataset *GTiffDataset::Open(GDALOpenInfo *poOpenInfo)
"with the IGNORE_COG_LAYOUT_BREAK open option set "
"to YES.",
pszFilename);
XTIFFClose(l_hTIFF);
delete poDS;
return nullptr;
}
Expand Down

0 comments on commit a39256b

Please sign in to comment.