summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binaryview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index f0969e9f..0aea134e 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -1750,7 +1750,7 @@ std::vector<Ref<Relocation>> BinaryView::GetRelocationsAt(uint64_t addr) const
result.reserve(count);
for (size_t i = 0; i < count; i++)
{
- result.push_back(new Relocation(relocations[i]));
+ result.push_back(new Relocation(BNNewRelocationReference(relocations[i])));
}
BNFreeRelocationList(relocations, count);
return result;