summaryrefslogtreecommitdiffstats
path: root/src/glu/mini
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-14 10:02:32 -0700
committerBrian Paul <[email protected]>2010-02-14 10:05:42 -0700
commitd4d0629fcdcd98208e2badd3987755d9a6a1c9da (patch)
tree907584d3fec0ba6d6549a7b28cdfdb0d7c657b6b /src/glu/mini
parent291bd19a1a16399300022020c93d4d1b253aefc6 (diff)
src/glu/mini: fix mem leak (bug 26559)
Diffstat (limited to 'src/glu/mini')
-rw-r--r--src/glu/mini/mipmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glu/mini/mipmap.c b/src/glu/mini/mipmap.c
index a655d214e3a..1cf739a13e3 100644
--- 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;
+ }
}