mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 07:11:05 -06:00
cmGeneratedFileStream: File resource leak if oldname not found
This commit is contained in:
@@ -180,6 +180,7 @@ int cmGeneratedFileStreamBase::CompressFile(std::string const& oldname,
|
||||
}
|
||||
FILE* ifs = cmsys::SystemTools::Fopen(oldname, "r");
|
||||
if (!ifs) {
|
||||
gzclose(gf);
|
||||
return 0;
|
||||
}
|
||||
size_t res;
|
||||
|
||||
Reference in New Issue
Block a user