From: Vinson Lee Date: Fri, 22 Feb 2013 06:13:06 +0000 (-0800) Subject: st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bac4a1e6fef40cb0adef1a4af0050fc6fb71c7f;p=mesa.git st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate. Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Christian König --- 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; }