summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-03 01:31:44 -0400
committerDavid Robillard <d@drobilla.net>2016-10-03 01:31:44 -0400
commitf306bd871455b5eb27498e712ef605243df357d0 (patch)
tree35dba7a10752a619aae7c36be7de7534b185941c /sord
parent4b4d5fd2130c6d135e360ef1a76d285cc4079708 (diff)
downloadsord-f306bd871455b5eb27498e712ef605243df357d0.tar.gz
sord-f306bd871455b5eb27498e712ef605243df357d0.tar.bz2
sord-f306bd871455b5eb27498e712ef605243df357d0.zip
Avoid unnecessary node copying
Diffstat (limited to 'sord')
-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