From: Vinson Lee Date: Fri, 22 Feb 2013 06:15:13 +0000 (-0800) Subject: st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54afbce934b4adb7258d79699c37312d378a7401;p=mesa.git st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate. 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/bitmap.c b/src/gallium/state_trackers/vdpau/bitmap.c index ecc5b158a9b..469f3e89964 100644 --- a/src/gallium/state_trackers/vdpau/bitmap.c +++ b/src/gallium/state_trackers/vdpau/bitmap.c @@ -83,6 +83,7 @@ vlVdpBitmapSurfaceCreate(VdpDevice device, if (!res) { pipe_mutex_unlock(dev->mutex); FREE(dev); + FREE(vlsurface); return VDP_STATUS_RESOURCES; }