mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nv30: Fix memory leak.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
82691f1293
commit
7c544e55da
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue