gallivm: fixed memory leak in lp_build_tgsi_aos

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
James Benton 2012-05-01 16:56:30 +01:00 committed by José Fonseca
parent 0b0f4628d6
commit c426e63aa0

View file

@ -1089,6 +1089,7 @@ lp_build_tgsi_aos(struct gallivm_state *gallivm,
debug_printf("2222222222222222222222222222 \n"); debug_printf("2222222222222222222222222222 \n");
} }
tgsi_parse_free(&parse); tgsi_parse_free(&parse);
FREE(bld.bld_base.instructions);
if (0) { if (0) {
LLVMModuleRef module = LLVMGetGlobalParent( LLVMModuleRef module = LLVMGetGlobalParent(