mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-14 09:38:40 +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;
|
unsigned Max;
|
||||||
public:
|
public:
|
||||||
PressureDiffs(): PDiffArray(0), Size(0), Max(0) {}
|
PressureDiffs(): PDiffArray(0), Size(0), Max(0) {}
|
||||||
|
~PressureDiffs() { free(PDiffArray); }
|
||||||
|
|
||||||
void init(unsigned N);
|
void init(unsigned N);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user