From 7c544e55daf9e6a1e46ea707243f59566873552c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 2 Feb 2013 20:35:29 -0800 Subject: [PATCH] nv30: Fix memory leak. Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- src/gallium/drivers/nv30/nv30_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nv30/nv30_screen.c b/src/gallium/drivers/nv30/nv30_screen.c index caa5f8f64db..90c367280d4 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; } -- 2.30.2