summaryrefslogtreecommitdiffstats
path: root/src/sratom.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-02 21:33:55 +0000
committerDavid Robillard <d@drobilla.net>2012-03-02 21:33:55 +0000
commit5b72f90d29734e772ace6da355e24971bb67b656 (patch)
tree7ef00c4e4c1b1ba81cb4b324f865bce786e96f92 /src/sratom.c
parent8e9a91f37d10393745c6bc217782df65814f879a (diff)
downloadsratom-5b72f90d29734e772ace6da355e24971bb67b656.tar.gz
sratom-5b72f90d29734e772ace6da355e24971bb67b656.tar.bz2
sratom-5b72f90d29734e772ace6da355e24971bb67b656.zip
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4015 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/sratom.c')
-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;