Module: Mesa
Branch: master
Commit: 3d6d44348150cef8316f32de79470d9a0ed71155
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d6d44348150cef8316f32de79470d9a0ed71155

Author: Vinson Lee <[email protected]>
Date:   Thu Oct 27 14:51:08 2011 -0700

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

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;
    }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to