[decompiler] fix memory leak on empty pairs (#1635)

This commit is contained in:
water111
2022-07-10 19:39:38 -04:00
committed by GitHub
parent 6eb4750242
commit 88166300a9
+5 -1
View File
@@ -178,7 +178,11 @@ void LinkedObjectFile::symbol_link_word(int source_segment,
if (word.kind() != LinkedWord::PLAIN_DATA) {
printf("bad symbol link word\n");
}
word.set_to_symbol(kind, name);
if (kind == LinkedWord::EMPTY_PTR) {
word.set_to_empty_ptr();
} else {
word.set_to_symbol(kind, name);
}
}
/*!