From 0d51906c0754b1c1a2964af50c55306bce9ab224 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 19 Feb 2013 23:16:14 -0800 Subject: [PATCH] radeonsi: Fix memory leak in si_shader_select. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Michel Dänzer --- 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 dc12520adbb..81452ebc231 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -1942,6 +1942,7 @@ int si_shader_select(struct pipe_context *ctx, R600_ERR("Failed to build shader variant (type=%u) %d\n", sel->type, r); sel->current = NULL; + FREE(shader); return r; } -- 2.30.2