From: Brian Paul Date: Thu, 9 Feb 2012 03:10:15 +0000 (-0700) Subject: mesa: fix error handling in get_tex_rgba_compressed() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcca8f0b7aeedaf22b33223b6148a6b5731ba89c;p=mesa.git mesa: fix error handling in get_tex_rgba_compressed() --- diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 8bbea831c31..a02a4915695 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -259,6 +259,8 @@ get_tex_rgba_compressed(struct gl_context *ctx, GLuint dimensions, } else { _mesa_error(ctx, GL_OUT_OF_MEMORY, "glGetTexImage"); + free(tempImage); + return; } }