diff options
author | David Robillard <d@drobilla.net> | 2012-03-02 21:33:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-02 21:33:55 +0000 |
commit | 5b72f90d29734e772ace6da355e24971bb67b656 (patch) | |
tree | 7ef00c4e4c1b1ba81cb4b324f865bce786e96f92 /src | |
parent | 8e9a91f37d10393745c6bc217782df65814f879a (diff) | |
download | sratom-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')
-rw-r--r-- | src/sratom.c | 2 |
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; |