projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291bd19
)
src/glu/mini: fix mem leak (bug 26559)
author
Brian Paul
<brianp@vmware.com>
Sun, 14 Feb 2010 17:02:32 +0000
(10:02 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sun, 14 Feb 2010 17:05:42 +0000
(10:05 -0700)
src/glu/mini/mipmap.c
patch
|
blob
|
history
diff --git
a/src/glu/mini/mipmap.c
b/src/glu/mini/mipmap.c
index a655d214e3a5b92667ad1ae0a24dc8e964184593..1cf739a13e302579197309f4b5f6eadf4503c40e 100644
(file)
--- a/
src/glu/mini/mipmap.c
+++ b/
src/glu/mini/mipmap.c
@@
-287,7
+287,11
@@
gluScaleImage(GLenum format,
}
break;
default:
- return GLU_INVALID_ENUM;
+ {
+ free(tempin);
+ free(tempout);
+ return GLU_INVALID_ENUM;
+ }
}