aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-10-27 14:51:08 -0700
committermks-hackers <mks-hackers@DellE6400-CVP1.(none)>2011-11-01 14:41:24 -0700
commit3d6d44348150cef8316f32de79470d9a0ed71155 (patch)
treef7fa606fc4da80ec4caea22a338dedef31bed5b3 /src/mesa/main
parent6d3d0ca9e9ef0d0a1e3ba0940f7127298e078a7d (diff)
mesa: Fix memory leak in out-of-memory path.
Fixes Coverity resource leak defect.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/pack.c1
1 files changed, 1 insertions, 0 deletions
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;
}