summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-11 10:11:02 -0400
committerDavid Robillard <d@drobilla.net>2016-07-11 10:11:02 -0400
commitce95cd35b2546dd2e8fb674722d2a800fafeaf4c (patch)
treecf470b9a819b64dc45b1f190e4a7bc078d667cd3 /src
parentda37be26f719e04a40964231e5db699f3eb26637 (diff)
downloadsratom-ce95cd35b2546dd2e8fb674722d2a800fafeaf4c.tar.gz
sratom-ce95cd35b2546dd2e8fb674722d2a800fafeaf4c.tar.bz2
sratom-ce95cd35b2546dd2e8fb674722d2a800fafeaf4c.zip
Fix memory leak
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sratom.c b/src/sratom.c
index f5beea4..7966e65 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -651,10 +651,11 @@ read_node(Sratom* sratom,
SerdURI uri;
serd_uri_parse((const uint8_t*)str, &uri);
- SerdNode rel = serd_node_new_relative_uri(&uri, &sratom->base, NULL, NULL);
+ SerdNode rel = serd_node_new_relative_uri(&uri, &sratom->base, NULL, NULL);
uint8_t* path = serd_file_uri_parse(rel.buf, NULL);
lv2_atom_forge_path(forge, (const char*)path, strlen((const char*)path));
free(path);
+ serd_node_free(&rel);
} else {
lv2_atom_forge_urid(forge, map->map(map->handle, str));
}