diff options
author | Brian Paul <brianp@vmware.com> | 2010-11-09 09:24:21 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-11-09 09:24:21 -0700 |
commit | b3317cf27915894c676664a3a2df6378e2b18721 (patch) | |
tree | 3d3794acba0a825e73418f3c275a3abe1ed7dfed | |
parent | 781dbd0a7a998bd7332d1cda0c0d79b915b70145 (diff) |
gallivm: restore missing LLVMDisposeBuilder() calls
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_flow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.c b/src/gallium/auxiliary/gallivm/lp_bld_flow.c index 6b675f1f1b..a9c9c7af10 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_flow.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.c @@ -415,6 +415,8 @@ lp_build_alloca(struct gallivm_state *gallivm, res = LLVMBuildAlloca(first_builder, type, name); LLVMBuildStore(builder, LLVMConstNull(type), res); + LLVMDisposeBuilder(first_builder); + return res; } @@ -455,5 +457,7 @@ lp_build_array_alloca(struct gallivm_state *gallivm, res = LLVMBuildArrayAlloca(first_builder, type, count, name); + LLVMDisposeBuilder(first_builder); + return res; } |