aboutsummaryrefslogtreecommitdiffstats
path: root/src/namespaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namespaces.c')
-rw-r--r--src/namespaces.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namespaces.c b/src/namespaces.c
index b14d74c5..6c400a3c 100644
--- a/src/namespaces.c
+++ b/src/namespaces.c
@@ -47,8 +47,8 @@ void
serd_namespaces_free(SerdNamespaces ns)
{
for (size_t i = 0; i < ns->n_namespaces; ++i) {
- free(ns->namespaces[i].name);
- free(ns->namespaces[i].uri);
+ serd_string_free(ns->namespaces[i].name);
+ serd_string_free(ns->namespaces[i].uri);
}
free(ns->namespaces);
free(ns);
@@ -80,7 +80,7 @@ serd_namespaces_add(SerdNamespaces ns,
assert(uri);
SerdNamespace* const record = serd_namespaces_find(ns, name->buf, name->n_chars);
if (record) {
- free(record->uri);
+ serd_string_free(record->uri);
record->uri = serd_string_copy(uri);
} else {
++ns->n_namespaces;