mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 01:20:17 +01:00
radeonsi: Fix memory leak in si_set_constant_buffer.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f88ed1658c
commit
f987d23b28
1 changed files with 1 additions and 0 deletions
|
|
@ -2523,6 +2523,7 @@ static void si_set_constant_buffer(struct pipe_context *ctx, uint shader, uint i
|
|||
|
||||
default:
|
||||
R600_ERR("unsupported %d\n", shader);
|
||||
FREE(pm4);
|
||||
}
|
||||
|
||||
if (cb->buffer != &rbuffer->b.b)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue