st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate.
authorVinson Lee <vlee@freedesktop.org>
Fri, 22 Feb 2013 06:15:13 +0000 (22:15 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 23 Feb 2013 03:30:03 +0000 (19:30 -0800)
Fixes resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/bitmap.c

index ecc5b158a9b2c69236cb606c6ee37d7f80b46c27..469f3e8996424338ae5494aaaed8b6c5a9936a30 100644 (file)
@@ -83,6 +83,7 @@ vlVdpBitmapSurfaceCreate(VdpDevice device,
    if (!res) {
       pipe_mutex_unlock(dev->mutex);
       FREE(dev);
+      FREE(vlsurface);
       return VDP_STATUS_RESOURCES;
    }