From c426e63aa064debc23f9819c3862f357f1726bce Mon Sep 17 00:00:00 2001 From: James Benton Date: Tue, 1 May 2012 16:56:30 +0100 Subject: [PATCH] gallivm: fixed memory leak in lp_build_tgsi_aos MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: José Fonseca Reviewed-by: Brian Paul --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c index 80c148124ee..19652d13f3c 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c @@ -1089,6 +1089,7 @@ lp_build_tgsi_aos(struct gallivm_state *gallivm, debug_printf("2222222222222222222222222222 \n"); } tgsi_parse_free(&parse); + FREE(bld.bld_base.instructions); if (0) { LLVMModuleRef module = LLVMGetGlobalParent( -- 2.30.2