Commit db38b3c7 authored by georgia.kouveli's avatar georgia.kouveli Committed by Commit bot

[arm] Fix memory leak in disassembler.

Which I introduced in:

c15b3ffc [arm] Share constant pool entries in snapshot.

BUG=chromium:725714

Review-Url: https://codereview.chromium.org/2905643002
Cr-Commit-Position: refs/heads/master@{#45540}
parent 3c9b5989
......@@ -265,15 +265,15 @@ static int DecodeIt(Isolate* isolate, std::ostream* os,
if (dummy_rinfo.IsInConstantPool()) {
byte* constant_pool_entry_address =
dummy_rinfo.constant_pool_entry_address();
RelocIterator* it = new RelocIterator(converter.code());
while (!it->done()) {
if (it->rinfo()->IsInConstantPool() &&
(it->rinfo()->constant_pool_entry_address() ==
RelocIterator reloc_it(converter.code());
while (!reloc_it.done()) {
if (reloc_it.rinfo()->IsInConstantPool() &&
(reloc_it.rinfo()->constant_pool_entry_address() ==
constant_pool_entry_address)) {
PrintRelocInfo(&out, isolate, ref_encoder, os, it->rinfo());
PrintRelocInfo(&out, isolate, ref_encoder, os, reloc_it.rinfo());
break;
}
it->next();
reloc_it.next();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment