diff options
author | Vinson Lee <[email protected]> | 2013-02-02 20:35:29 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-07 21:45:01 -0800 |
commit | 7c544e55daf9e6a1e46ea707243f59566873552c (patch) | |
tree | f0ed307cdef8bf8edfae86bc7b2e8686b610bc59 /src/gallium/drivers/nv30 | |
parent | 82691f12931a022560f8054c8c8e240cd6b2fff4 (diff) |
nv30: Fix memory leak.
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nv30')
-rw-r--r-- | 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 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; } |