[SCM] OCE packaging branch, debian, updated. debian/0.11-1

tpaviot tpaviot at gmail.com
Thu Dec 13 19:16:42 UTC 2012


The following commit has been merged in the debian branch:
commit b346761b5a3dc8c3009062cc882f4d1e590a8483
Author: tpaviot <tpaviot at gmail.com>
Date:   Tue Nov 20 09:50:27 2012 +0100

    [cppcheck-fix][memory-leak]
    
    Fix cppcheck-1.57 issue :
    [src/Graphic2d/Graphic2d_ImageFile.cxx:442]: (error) Memory leak: pheader

diff --git a/src/Graphic2d/Graphic2d_ImageFile.cxx b/src/Graphic2d/Graphic2d_ImageFile.cxx
index 24d0dba..db552b4 100644
--- a/src/Graphic2d/Graphic2d_ImageFile.cxx
+++ b/src/Graphic2d/Graphic2d_ImageFile.cxx
@@ -439,6 +439,7 @@ Path.SystemName (aFileName);
 cout << "Graphic2d_Image_File::Values('" << aFileName << "'," << 
                 aWidth << "," << aHeight << "," << aDepth << ")" << endl;
 #endif
+        free(pheader);
         return Result;
 
 }

-- 
OCE packaging



More information about the debian-science-commits mailing list