summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sord/sordmm.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index bc0c456..83281c8 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -642,9 +642,7 @@ Model::get(const Node& subject,
{
SordNode* c_node = sord_get(
_c_obj, subject.c_obj(), predicate.c_obj(), object.c_obj(), NULL);
- Node node(_world, c_node);
- sord_node_free(_world.c_obj(), c_node);
- return node;
+ return Node(_world, c_node, false);
}
} // namespace Sord