From 328281d02cc9ed281b47915c4b02e36328ad2bb5 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 21 Sep 2018 16:46:14 -0400 Subject: Fix ref count bug in Relocation class --- relocationhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'relocationhandler.cpp') 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 il, Ref relocation) { return BNRelocationHandlerGetOperandForExternalRelocation(m_object, data, addr, length, il->GetObject(), - relocation->GetObject()); + BNNewRelocationReference(relocation->GetObject())); } \ No newline at end of file -- cgit v1.3.1