projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd73b99
)
r600/llvm: Free binary.code/binary.config in r600_llvm_compile
author
Aaron Watry
<awatry@gmail.com>
Thu, 14 Nov 2013 18:17:43 +0000
(12:17 -0600)
committer
Tom Stellard
<thomas.stellard@amd.com>
Fri, 15 Nov 2013 17:53:31 +0000
(09:53 -0800)
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>
src/gallium/drivers/r600/r600_llvm.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_llvm.c
b/src/gallium/drivers/r600/r600_llvm.c
index f6784ebd1487594ffd8d71257967328d56dbde77..6860faafe50f35e078581ef8654d1feecd6fdaee 100644
(file)
--- 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;
}