From f987d23b28491bd7b0552bd9daffa53a8e073c71 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 23 Feb 2013 17:19:24 -0800 Subject: [PATCH] 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 --- src/gallium/drivers/radeonsi/si_state.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2