summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glu/mesa/mipmap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glu/mesa/mipmap.c b/src/glu/mesa/mipmap.c
index d85ce9b9b0a..ad6b6e63a62 100644
--- a/src/glu/mesa/mipmap.c
+++ b/src/glu/mesa/mipmap.c
@@ -287,7 +287,11 @@ gluScaleImage(GLenum format,
}
break;
default:
- return GLU_INVALID_ENUM;
+ {
+ free(tempin);
+ free(tempout);
+ return GLU_INVALID_ENUM;
+ }
}
@@ -670,6 +674,7 @@ gluBuild1DMipmaps(GLenum target, GLint components,
break;
default:
/* Not implemented */
+ free(texture);
return GLU_ERROR;
}
}