mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate.
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
1bac4a1e6f
commit
54afbce934
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ vlVdpBitmapSurfaceCreate(VdpDevice device,
|
|||
if (!res) {
|
||||
pipe_mutex_unlock(dev->mutex);
|
||||
FREE(dev);
|
||||
FREE(vlsurface);
|
||||
return VDP_STATUS_RESOURCES;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue