From: Vinson Lee Date: Sun, 3 Feb 2013 04:35:29 +0000 (-0800) Subject: nv30: Fix memory leak. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c544e55daf9e6a1e46ea707243f59566873552c;p=mesa.git nv30: Fix memory leak. Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- 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; }