mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Add missing archive_read_finish calls to fix some of the presently reported valgrind memory leaks.
This commit is contained in:
@@ -254,6 +254,7 @@ int cmCPackArchiveGenerator::CompressFiles(const char* outFileName,
|
||||
// close the archive and finish the write
|
||||
archive_write_close(a);
|
||||
archive_write_finish(a);
|
||||
archive_read_finish(disk);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user