Mesa (master): st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate.

Vinson Lee vlee at kemper.freedesktop.org
Sat Feb 23 03:30:21 UTC 2013


Module: Mesa
Branch: master
Commit: 1bac4a1e6fef40cb0adef1a4af0050fc6fb71c7f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1bac4a1e6fef40cb0adef1a4af0050fc6fb71c7f

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Thu Feb 21 22:13:06 2013 -0800

st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate.

Fixes resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Christian König <christian.koenig at amd.com>

---

 src/gallium/state_trackers/vdpau/output.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c
index a835126..8237eac 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;
    }
 




More information about the mesa-commit mailing list