[Mesa-dev] [PATCH 2/2] st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate.
Vinson Lee
vlee at freedesktop.org
Thu Feb 21 22:25:25 PST 2013
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/gallium/state_trackers/vdpau/bitmap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/state_trackers/vdpau/bitmap.c b/src/gallium/state_trackers/vdpau/bitmap.c
index ecc5b15..469f3e8 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;
}
--
1.8.1.2
More information about the mesa-dev
mailing list