OSDN Git Service

r600/llvm: Free binary.code/binary.config in r600_llvm_compile
authorAaron Watry <awatry@gmail.com>
Thu, 14 Nov 2013 18:17:43 +0000 (12:17 -0600)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 15 Nov 2013 17:53:31 +0000 (09:53 -0800)
commit01f3622c740173d4001eb421b74d4d60a0c7fd12
treed3fc1f0f0abd08ec6645565e1d148dc5bc52662f
parentdd73b99420de17651001e0a4d937f1f66fbef14c
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>
src/gallium/drivers/r600/r600_llvm.c