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>
This commit is contained in:
parent
dd73b99420
commit
01f3622c74
|
@ -864,6 +864,9 @@ unsigned r600_llvm_compile(
|
|||
}
|
||||
}
|
||||
|
||||
FREE(binary.code);
|
||||
FREE(binary.config);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue