From 1936b55421086fcd1ae4fa11cb72b55421f4753c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 Sep 2015 15:48:26 +0000 Subject: Fix minor memory leak in sordi. git-svn-id: http://svn.drobilla.net/sord/trunk@328 3d64ff67-21c5-427c-a301-fe4f08042e5a --- NEWS | 3 ++- src/sordi.c | 1 + wscript | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 29ea3f3..65ea37e 100644 --- a/NEWS +++ b/NEWS @@ -4,12 +4,13 @@ sord (0.13.0) unstable; * Add sord_erase() for erasing statements via an iterator * Fix bugs with stores that contain both graphs and default graph statements * Fix compilation on compilers that do not support -pthread flag + * Fix minor memory leak in sordi * sord_validate: More extensive validation, including cardinality, PlainLiteral, and someValuesFrom restrictions. * This release does not break the ABI, but the semantics of iterators has changed: any modification to a model invalidates iterators on that model - -- David Robillard Thu, 19 Feb 2015 23:18:02 -0500 + -- David Robillard Thu, 10 Sep 2015 11:46:40 -0400 sord (0.12.2) stable; diff --git a/src/sordi.c b/src/sordi.c index 891e3e7..6ec5faf 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -163,6 +163,7 @@ main(int argc, char** argv) base_uri_node = serd_node_new_file_uri(in_path, NULL, &base_uri, false); } + free(in_path); if (!base_uri_node.buf) { fprintf(stderr, "Missing base URI\n"); return 1; diff --git a/wscript b/wscript index e78103f..24c67fd 100644 --- a/wscript +++ b/wscript @@ -44,7 +44,7 @@ def configure(conf): except: Logs.warn("No C++ compiler, sordmm.hpp compile test skipped") pass - + autowaf.configure(conf) autowaf.set_c99_mode(conf) autowaf.display_header('Sord configuration') @@ -129,7 +129,7 @@ def build(bld): defines = defines + ['SORD_SHARED', 'SORD_INTERNAL'], cflags = libflags) autowaf.use_lib(bld, obj, 'SERD') - + # Static Library if bld.env.BUILD_STATIC: obj = bld(features = 'c cstlib', @@ -209,7 +209,7 @@ def build(bld): source = 'src/%s.c' % i, includes = ['.', './src'], use = 'libsord', - lib = libs, + lib = libs, target = i, install_path = '${BINDIR}', defines = defines) -- cgit v1.2.1