summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 8a01600..09a7779 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -335,6 +335,7 @@ sratom_write(Sratom* sratom,
serd_writer_write_statement(writer, flags, NULL,
&id, &p, &o, &datatype, NULL);
serd_writer_end_anon(writer, &id);
+ serd_node_free(&o);
}
if (object.buf) {
@@ -547,6 +548,7 @@ read_node(Sratom* sratom,
void* body = serd_base64_decode(vstr, vlen, &size);
lv2_atom_forge_atom(forge, size, type_urid);
lv2_atom_forge_write(forge, body, size);
+ free(body);
} else {
lv2_atom_forge_blank(forge, &frame, sratom->next_id++, type_urid);
SordQuad match;