From: Brian Paul Date: Sun, 14 Feb 2010 17:02:32 +0000 (-0700) Subject: src/glu/mini: fix mem leak (bug 26559) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4d0629fcdcd98208e2badd3987755d9a6a1c9da;p=mesa.git src/glu/mini: fix mem leak (bug 26559) --- 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; + } }