mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
st/vdpau: Fix memory leak in vlVdpOutputSurfaceCreate.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
b4dba5bba2
commit
1bac4a1e6f
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ vlVdpOutputSurfaceCreate(VdpDevice device,
|
|||
if (!res) {
|
||||
pipe_mutex_unlock(dev->mutex);
|
||||
FREE(dev);
|
||||
FREE(vlsurface);
|
||||
return VDP_STATUS_ERROR;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue