summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sord/sordmm.hpp6
-rw-r--r--wscript2
2 files changed, 4 insertions, 4 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index fdc9c59..ee33289 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -522,7 +522,7 @@ Model::load_file(SerdEnv* env,
SerdReader* reader = sord_new_reader(_c_obj, env, syntax, NULL);
serd_reader_read_file(reader, path);
serd_reader_free(reader);
- free(path);
+ serd_free(path);
}
inline SerdStatus
@@ -537,10 +537,10 @@ Model::write_to_file(const std::string& uri, SerdSyntax syntax, SerdStyle style)
FILE* const fd = fopen((const char*)path, "w");
if (!fd) {
fprintf(stderr, "Failed to open file %s\n", path);
- free(path);
+ serd_free(path);
return SERD_ERR_UNKNOWN;
}
- free(path);
+ serd_free(path);
SerdURI base_uri = SERD_URI_NULL;
if (serd_uri_parse((const uint8_t*)uri.c_str(), &base_uri)) {
diff --git a/wscript b/wscript
index 3d7a013..1c142bb 100644
--- a/wscript
+++ b/wscript
@@ -56,7 +56,7 @@ def configure(conf):
Options.options.static_progs)
autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
- atleast_version='0.22.4', mandatory=True)
+ atleast_version='0.29.4', mandatory=True)
autowaf.check_pkg(conf, 'libpcre', uselib_store='PCRE', mandatory=False)
if conf.env.HAVE_PCRE: