[Mesa-dev] [PATCH] nv30: Fix memory leak.
Brian Paul
brianp at vmware.com
Thu Feb 7 07:29:03 PST 2013
On 02/06/2013 11:34 PM, Vinson Lee wrote:
> Fixes resource leak defect reported by Coverity.
>
> Signed-off-by: Vinson Lee<vlee at freedesktop.org>
> ---
> 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 f3faf8a..7825697 100644
> --- a/src/gallium/drivers/nv30/nv30_screen.c
> +++ b/src/gallium/drivers/nv30/nv30_screen.c
> @@ -356,6 +356,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;
> }
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list