From 4e6a0b40c5bb31101718f25ffaff8ffeb3d921b9 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 24 Oct 2011 11:57:15 -0700 Subject: [PATCH] mesa: Fix memory leak in out-of-memory path. Fixes Coverity resource leak defect. Reviewed-by: Brian Paul --- src/mesa/main/pack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 092e541c5db..ecdeaf5dccf 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -3717,6 +3717,7 @@ _mesa_unpack_color_span_ubyte(struct gl_context *ctx, if (!indexes) { _mesa_error(ctx, GL_OUT_OF_MEMORY, "pixel unpacking"); + free(rgba); return; } -- 2.30.2