Skip to content

Commit 2ad6dd6

Browse files
committed
Merge remote-tracking branch 'origin/caheckman_MapState_fix'
2 parents d66027e + a1c1898 commit 2ad6dd6

File tree

1 file changed

+2
-0
lines changed
  • Ghidra/Features/Decompiler/src/decompile/cpp

1 file changed

+2
-0
lines changed

Ghidra/Features/Decompiler/src/decompile/cpp/varmap.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,8 @@ void MapState::reconcileDatatypes(void)
835835
startDatatype = curDatatype;
836836
if (curHint->compare(*newList.back()) != 0)
837837
newList.push_back(curHint); // Keep the current hint if it is otherwise different
838+
else
839+
delete curHint; // RangeHint is on the heap, so delete if we are not keeping it
838840
}
839841
else {
840842
while(startPos < newList.size()) {

0 commit comments

Comments
 (0)