From: James Benton Date: Tue, 1 May 2012 15:56:30 +0000 (+0100) Subject: gallivm: fixed memory leak in lp_build_tgsi_aos X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c426e63aa064debc23f9819c3862f357f1726bce;p=mesa.git gallivm: fixed memory leak in lp_build_tgsi_aos Reviewed-by: José Fonseca Reviewed-by: Brian Paul --- 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(