summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--relocationhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/relocationhandler.cpp b/relocationhandler.cpp
index b077a82d..baceca48 100644
--- a/relocationhandler.cpp
+++ b/relocationhandler.cpp
@@ -141,5 +141,5 @@ size_t CoreRelocationHandler::GetOperandForExternalRelocation(const uint8_t* dat
Ref<LowLevelILFunction> il, Ref<Relocation> relocation)
{
return BNRelocationHandlerGetOperandForExternalRelocation(m_object, data, addr, length, il->GetObject(),
- relocation->GetObject());
+ BNNewRelocationReference(relocation->GetObject()));
} \ No newline at end of file