gallivm: fixed memory leak in lp_build_tgsi_aos
authorJames Benton <jbenton@vmware.com>
Tue, 1 May 2012 15:56:30 +0000 (16:56 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 2 May 2012 09:13:00 +0000 (10:13 +0100)
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c

index 80c148124ee2daa9a96b899e1438e8cc13df37ae..19652d13f3cbe73b7b6140615e460e5922852501 100644 (file)
@@ -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(