mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
fixed memory leak
This commit is contained in:
parent
d66027e27a
commit
a1c1898624
1 changed files with 2 additions and 0 deletions
|
@ -835,6 +835,8 @@ void MapState::reconcileDatatypes(void)
|
||||||
startDatatype = curDatatype;
|
startDatatype = curDatatype;
|
||||||
if (curHint->compare(*newList.back()) != 0)
|
if (curHint->compare(*newList.back()) != 0)
|
||||||
newList.push_back(curHint); // Keep the current hint if it is otherwise different
|
newList.push_back(curHint); // Keep the current hint if it is otherwise different
|
||||||
|
else
|
||||||
|
delete curHint; // RangeHint is on the heap, so delete if we are not keeping it
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
while(startPos < newList.size()) {
|
while(startPos < newList.size()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue