projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82691f1
)
nv30: Fix memory leak.
author
Vinson Lee
<vlee@freedesktop.org>
Sun, 3 Feb 2013 04:35:29 +0000
(20:35 -0800)
committer
Vinson Lee
<vlee@freedesktop.org>
Fri, 8 Feb 2013 05:45:01 +0000
(21:45 -0800)
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/nv30/nv30_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv30/nv30_screen.c
b/src/gallium/drivers/nv30/nv30_screen.c
index caa5f8f64db81b7b133d53a0d21e75966e1a0406..90c367280d4aa87f2ddac9ee4e0fd91ef4add480 100644
(file)
--- 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;
}