diff options
author | Vinson Lee <[email protected]> | 2013-02-21 22:13:06 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-22 19:29:56 -0800 |
commit | 1bac4a1e6fef40cb0adef1a4af0050fc6fb71c7f (patch) | |
tree | 083c6f10daf5c779da412821c1e936bc18a346fe | |
parent | b4dba5bba2146d8dd06e6e62b5fb2485123b8586 (diff) |
st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate.
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Christian König <[email protected]>
-rw-r--r-- | 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 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; } |