[Mesa-dev] [PATCH] mesa: Fix memory leak in out-of-memory path.
Vinson Lee
vlee at vmware.com
Thu Oct 27 14:53:36 PDT 2011
Fixes Coverity resource leak defect.
---
src/mesa/main/pack.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index ecdeaf5..539a06c 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;
}
--
1.7.1
More information about the mesa-dev
mailing list