From: Vinson Lee Date: Sun, 24 Feb 2013 01:19:24 +0000 (-0800) Subject: radeonsi: Fix memory leak in si_set_constant_buffer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f987d23b28491bd7b0552bd9daffa53a8e073c71;p=mesa.git radeonsi: Fix memory leak in si_set_constant_buffer. Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul Reviewed-by: Alex Deucher --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 769ba0cc797..a395ec4f2d1 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -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)