From fcca8f0b7aeedaf22b33223b6148a6b5731ba89c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Feb 2012 20:10:15 -0700 Subject: [PATCH] mesa: fix error handling in get_tex_rgba_compressed() --- src/mesa/main/texgetimage.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.30.2