[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23
tpaviot
tpaviot at gmail.com
Fri Feb 24 18:50:35 UTC 2012
The following commit has been merged in the upstream branch:
commit a2996bc0f06225fb990b784b95685c1cd75cdca9
Author: tpaviot <tpaviot at gmail.com>
Date: Thu Jan 12 21:44:50 2012 +0100
[cppcheck-error-fix][memory-leak]
[OpenGl/OpenGl_ImageBox.cxx:329]: (error) Memory leak: abuf
diff --git a/src/OpenGl/OpenGl_ImageBox.cxx b/src/OpenGl/OpenGl_ImageBox.cxx
index 68ccc65..7811904 100644
--- a/src/OpenGl/OpenGl_ImageBox.cxx
+++ b/src/OpenGl/OpenGl_ImageBox.cxx
@@ -326,6 +326,7 @@ read_texture(char *name, int *width, int *height, int *components) {
bbuf = (unsigned char *)malloc(image->xsize*sizeof(unsigned char));
abuf = (unsigned char *)malloc(image->xsize*sizeof(unsigned char));
if(!base || !rbuf || !gbuf || !bbuf)
+ free(abuf);
return NULL;
lptr = base;
for(y=0; y<image->ysize; y++) {
--
OCE packaging
More information about the debian-science-commits
mailing list