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

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


The following commit has been merged in the debian branch:
commit 2a33a61ac6f83d03864524ecda4547e361dc818a
Author: tpaviot <tpaviot at gmail.com>
Date:   Tue Nov 20 09:02:00 2012 +0100

    [cppcheck-fix][memory-leak]
    
    Fix cppcheck-1.57 issue :
    [src/Xw/Xw_open_image.cxx:104]: (error) Memory leak: cdata

diff --git a/src/Xw/Xw_open_image.cxx b/src/Xw/Xw_open_image.cxx
index f6fa932..ef42486 100644
--- a/src/Xw/Xw_open_image.cxx
+++ b/src/Xw/Xw_open_image.cxx
@@ -97,6 +97,7 @@ char *cdata ;
     if( !(cdata = (char*) Xw_calloc(width*height,pad)) ) {
 	/*ERROR*XImage Allocation failed*/
 	Xw_set_error(60,"Xw_open_image",0) ;
+    Xw_free(cdata);
         return (NULL) ;
     }
 

-- 
OCE packaging



More information about the debian-science-commits mailing list