projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe38c16
)
glu/sgi: Fix memory leak in gluScaleImage3D.
author
Vinson Lee
<vlee@vmware.com>
Mon, 23 Nov 2009 05:57:37 +0000
(
00:57
-0500)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 4 Dec 2009 08:10:22 +0000
(
00:10
-0800)
(cherry picked from commit
b611f639b4bffdcca376293f7ce71af9f6bdbff3
)
src/glu/sgi/libutil/mipmap.c
patch
|
blob
|
history
diff --git
a/src/glu/sgi/libutil/mipmap.c
b/src/glu/sgi/libutil/mipmap.c
index 4139c304a1dfaf11d21a12340d49c9b99b5284c2..223621f49fc8d0cde114318ffbd916b387d35537 100644
(file)
--- a/
src/glu/sgi/libutil/mipmap.c
+++ b/
src/glu/sgi/libutil/mipmap.c
@@
-7384,6
+7384,8
@@
int gluScaleImage3D(GLenum format,
afterImage = malloc(imageSize3D(widthOut, heightOut, depthOut, format,
GL_UNSIGNED_SHORT));
if (beforeImage == NULL || afterImage == NULL) {
+ free(beforeImage);
+ free(afterImage);
return GLU_OUT_OF_MEMORY;
}
retrieveStoreModes3D(&psm);