diff options
author | Vinson Lee <[email protected]> | 2013-02-21 22:15:13 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-22 19:30:03 -0800 |
commit | 54afbce934b4adb7258d79699c37312d378a7401 (patch) | |
tree | cb9035365ecddb8d5f056e34f348a925d856c0a3 /src/gallium | |
parent | 1bac4a1e6fef40cb0adef1a4af0050fc6fb71c7f (diff) |
st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate.
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/vdpau/bitmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |