From 54afbce934b4adb7258d79699c37312d378a7401 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 21 Feb 2013 22:15:13 -0800 Subject: st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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/bitmap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/state_trackers/vdpau/bitmap.c') 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; } -- cgit v1.2.3