mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
Free PressureDiffs instead of leaking.
Found by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc870037f6
commit
4af4cbbced
@ -157,6 +157,7 @@ class PressureDiffs {
|
||||
unsigned Max;
|
||||
public:
|
||||
PressureDiffs(): PDiffArray(0), Size(0), Max(0) {}
|
||||
~PressureDiffs() { free(PDiffArray); }
|
||||
|
||||
void init(unsigned N);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user