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
|
@ -2523,6 +2523,7 @@ static void si_set_constant_buffer(struct pipe_context *ctx, uint shader, uint i
|
||||||
|
|
||||||
default:
|
default:
|
||||||
R600_ERR("unsupported %d\n", shader);
|
R600_ERR("unsupported %d\n", shader);
|
||||||
|
FREE(pm4);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cb->buffer != &rbuffer->b.b)
|
if (cb->buffer != &rbuffer->b.b)
|
||||||
|
|
Loading…
Reference in New Issue