[patch] vmwgfx: memory leaks caused by double allocation

2011-10-19 Thread Dan Carpenter
These variables get allocated twice so the first allocation is a memory leak. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index c7cff3d..86c5e4c 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/

[patch] vmwgfx: memory leaks caused by double allocation

2011-10-18 Thread Dan Carpenter
These variables get allocated twice so the first allocation is a memory leak. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index c7cff3d..86c5e4c 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/

[patch] vmwgfx: memory leaks caused by double allocation

2011-10-18 Thread Thomas Hellstrom
On 10/18/2011 08:09 AM, Dan Carpenter wrote: > These variables get allocated twice so the first allocation is a > memory leak. > > Signed-off-by: Dan Carpenter > Reviewed-by: Thomas Hellstrom > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c > b/drivers/gpu/drm/vmwgfx/vmwgfx_resource

Re: [patch] vmwgfx: memory leaks caused by double allocation

2011-10-17 Thread Thomas Hellstrom
On 10/18/2011 08:09 AM, Dan Carpenter wrote: These variables get allocated twice so the first allocation is a memory leak. Signed-off-by: Dan Carpenter Reviewed-by: Thomas Hellstrom diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index