src/glu/mini: fix mem leak (bug 26559)
authorBrian Paul <brianp@vmware.com>
Sun, 14 Feb 2010 17:02:32 +0000 (10:02 -0700)
committerBrian Paul <brianp@vmware.com>
Sun, 14 Feb 2010 17:05:42 +0000 (10:05 -0700)
src/glu/mini/mipmap.c

index a655d214e3a5b92667ad1ae0a24dc8e964184593..1cf739a13e302579197309f4b5f6eadf4503c40e 100644 (file)
@@ -287,7 +287,11 @@ gluScaleImage(GLenum format,
       }
       break;
    default:
-      return GLU_INVALID_ENUM;
+      {
+         free(tempin);
+         free(tempout);
+         return GLU_INVALID_ENUM;
+      }
    }