From 3d6d44348150cef8316f32de79470d9a0ed71155 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 27 Oct 2011 14:51:08 -0700 Subject: [PATCH] mesa: Fix memory leak in out-of-memory path. Fixes Coverity resource leak defect. --- 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 ecdeaf5dccf..539a06c9a07 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -1983,6 +1983,7 @@ _mesa_pack_rgba_span_float(struct gl_context *ctx, GLuint n, GLfloat rgba[][4], break; default: _mesa_problem(ctx, "bad type in _mesa_pack_rgba_span_float"); + free(luminance); return; } -- 2.30.2