mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
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 01f3622c74)
This commit is contained in:
parent
f843604b6a
commit
7a87dc278e
1 changed files with 3 additions and 0 deletions
|
|
@ -745,6 +745,9 @@ unsigned r600_llvm_compile(
|
|||
}
|
||||
}
|
||||
|
||||
FREE(binary.code);
|
||||
FREE(binary.config);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue