[Cmake-commits] [cmake-commits] david.cole committed cmSystemTools.cxx 1.427 1.428

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Dec 28 13:15:21 EST 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv3909/Source

Modified Files:
	cmSystemTools.cxx 
Log Message:
Add missing archive_read_finish calls to fix some of the presently reported valgrind memory leaks.


Index: cmSystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSystemTools.cxx,v
retrieving revision 1.427
retrieving revision 1.428
diff -C 2 -d -r1.427 -r1.428
*** cmSystemTools.cxx	23 Dec 2009 19:34:46 -0000	1.427
--- cmSystemTools.cxx	28 Dec 2009 18:15:19 -0000	1.428
***************
*** 1853,1859 ****
      archive_entry_free(entry);
      }
-   // close the archive and finish the write
    archive_write_close(a);
    archive_write_finish(a);
    return true;
  #else
--- 1853,1859 ----
      archive_entry_free(entry);
      }
    archive_write_close(a);
    archive_write_finish(a);
+   archive_read_finish(disk);
    return true;
  #else



More information about the Cmake-commits mailing list