summaryrefslogtreecommitdiff
path: root/relocationhandler.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-09-21 16:46:14 -0400
committerPeter LaFosse <peter@vector35.com>2018-09-21 16:46:31 -0400
commit328281d02cc9ed281b47915c4b02e36328ad2bb5 (patch)
tree97503f227b2df017315df81c96adfefeb72b9306 /relocationhandler.cpp
parentdd9a865f2ebcb4dfbe462154114f495e49a16fe4 (diff)
Fix ref count bug in Relocation class
Diffstat (limited to 'relocationhandler.cpp')
-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