aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-10-24 11:57:15 -0700
committerVinson Lee <[email protected]>2011-10-24 14:13:01 -0700
commit4e6a0b40c5bb31101718f25ffaff8ffeb3d921b9 (patch)
tree4039576df8179fa9a9e6a778f201c3288e508313 /src/mesa/main
parentcc4ddc3a1e4bbe5fccd03b39b3590368be8c172f (diff)
mesa: Fix memory leak in out-of-memory path.
Fixes Coverity resource leak defect. Reviewed-by: Brian Paul <[email protected]>
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 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;
}