From 1bac4a1e6fef40cb0adef1a4af0050fc6fb71c7f Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 21 Feb 2013 22:13:06 -0800 Subject: [PATCH] st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Christian König --- src/gallium/state_trackers/vdpau/output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index a8351261199..8237eaceb26 100644 --- a/src/gallium/state_trackers/vdpau/output.c +++ b/src/gallium/state_trackers/vdpau/output.c @@ -86,6 +86,7 @@ vlVdpOutputSurfaceCreate(VdpDevice device, if (!res) { pipe_mutex_unlock(dev->mutex); FREE(dev); + FREE(vlsurface); return VDP_STATUS_ERROR; } -- 2.30.2