From 0911788d1183d061eabe1d9084d4eb866c032938 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 26 Apr 2019 15:03:28 -0400 Subject: Fix reference leak in FlowGraph::GetFunction --- flowgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flowgraph.cpp') diff --git a/flowgraph.cpp b/flowgraph.cpp index 64bfe364..3de9c90e 100644 --- a/flowgraph.cpp +++ b/flowgraph.cpp @@ -144,7 +144,7 @@ Ref FlowGraph::GetFunction() const BNFunction* func = BNGetFunctionForFlowGraph(m_object); if (!func) return nullptr; - return new Function(BNNewFunctionReference(func)); + return new Function(func); } -- cgit v1.3.1