summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorAaron Watry <[email protected]>2013-11-14 12:17:43 -0600
committerTom Stellard <[email protected]>2013-11-15 09:53:31 -0800
commit01f3622c740173d4001eb421b74d4d60a0c7fd12 (patch)
treed3fc1f0f0abd08ec6645565e1d148dc5bc52662f /src/gallium/drivers/r600
parentdd73b99420de17651001e0a4d937f1f66fbef14c (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" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-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 f6784ebd148..6860faafe50 100644
--- a/src/gallium/drivers/r600/r600_llvm.c
+++ b/src/gallium/drivers/r600/r600_llvm.c
@@ -864,6 +864,9 @@ unsigned r600_llvm_compile(
}
}
+ FREE(binary.code);
+ FREE(binary.config);
+
return r;
}