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

Author: Vinson Lee <[email protected]>
Date:   Sat Feb  2 20:35:29 2013 -0800

nv30: Fix memory leak.

Fixes resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>

---

 src/gallium/drivers/nv30/nv30_screen.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nv30/nv30_screen.c 
b/src/gallium/drivers/nv30/nv30_screen.c
index caa5f8f..90c3672 100644
--- a/src/gallium/drivers/nv30/nv30_screen.c
+++ b/src/gallium/drivers/nv30/nv30_screen.c
@@ -359,6 +359,7 @@ nv30_screen_create(struct nouveau_device *dev)
 
    if (!oclass) {
       NOUVEAU_ERR("unknown 3d class for 0x%02x\n", dev->chipset);
+      FREE(screen);
       return NULL;
    }
 

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

Reply via email to