summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-11-14 12:17:43 -0600
committerIan Romanick <ian.d.romanick@intel.com>2013-11-15 13:39:41 -0800
commit7a87dc278e5b521ed6d4e30afa24bcc54df72d2e (patch)
treeef8ce17da2135728d4fc2fed17fa955e420db2b6 /src/gallium
parentf843604b6a71a9809db8839d36750fbbdec25bc1 (diff)
r600/llvm: Free binary.code/binary.config in r600_llvm_compile
radeon_llvm_compile allocates memory for binary.code, binary.config, or neither depending on what's being done. We need to make sure to free that memory after it's no longer needed. v2: Don't bother checking for null before FREE() CC: "10.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 01f3622c740173d4001eb421b74d4d60a0c7fd12)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_llvm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c
index 7786282a839..5b680c0c1a0 100644
--- a/src/gallium/drivers/r600/r600_llvm.c
+++ b/src/gallium/drivers/r600/r600_llvm.c
@@ -745,6 +745,9 @@ unsigned r600_llvm_compile(
}
}
+ FREE(binary.code);
+ FREE(binary.config);
+
return r;
}