st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate.
authorVinson Lee <vlee@freedesktop.org>
Fri, 22 Feb 2013 06:13:06 +0000 (22:13 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 23 Feb 2013 03:29:56 +0000 (19:29 -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/output.c

index a835126119909d63121fb937743942b9e14b66f5..8237eaceb266f46c46d24cd80903c8cdf4e8c07f 100644 (file)
@@ -86,6 +86,7 @@ vlVdpOutputSurfaceCreate(VdpDevice device,
    if (!res) {
       pipe_mutex_unlock(dev->mutex);
       FREE(dev);
+      FREE(vlsurface);
       return VDP_STATUS_ERROR;
    }