mesa: Fix memory leak in out-of-memory path.

Fixes Coverity resource leak defect.

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Vinson Lee
2011-10-24 11:57:15 -07:00
parent cc4ddc3a1e
commit 4e6a0b40c5
+1
View File
@@ -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;
}