[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23
tpaviot
tpaviot at gmail.com
Fri Feb 24 18:50:37 UTC 2012
The following commit has been merged in the upstream branch:
commit ba4e5c4865e0fa54eb5201515818c14aa3aecc91
Author: tpaviot <tpaviot at gmail.com>
Date: Thu Jan 12 22:54:03 2012 +0100
[cppcheck-error-fix][memory-leak]
[Graphic2d/Graphic2d_ImageFile.cxx:403]: (error) Memory leak: pheader
[Graphic2d/Graphic2d_ImageFile.cxx:395]: (error) Data is allocated but not initialized: pheader
diff --git a/src/Graphic2d/Graphic2d_ImageFile.cxx b/src/Graphic2d/Graphic2d_ImageFile.cxx
index 1cb2493..4bc6a10 100644
--- a/src/Graphic2d/Graphic2d_ImageFile.cxx
+++ b/src/Graphic2d/Graphic2d_ImageFile.cxx
@@ -400,6 +400,7 @@ Standard_Integer readheader = 0;
if (readheader != sizeheader) {
cout << "Unable to read dump file header.\n" << flush;
if( !Reopen ) aFile.Close ();
+ free(pheader);
return Result;
}
--
OCE packaging
More information about the debian-science-commits
mailing list