diff options
author | David Robillard <d@drobilla.net> | 2011-01-25 17:03:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-25 17:03:53 +0000 |
commit | 5b0c4fec31b17b92d01f4eeccfd4bc4af8484865 (patch) | |
tree | 24c8a2b3a74678ce9d6d59860a2a7525a844c378 /src/serd_internal.h | |
parent | 2e3ec18723e534dd1e6600148a2e24216138414d (diff) | |
download | serd-5b0c4fec31b17b92d01f4eeccfd4bc4af8484865.tar.gz serd-5b0c4fec31b17b92d01f4eeccfd4bc4af8484865.tar.bz2 serd-5b0c4fec31b17b92d01f4eeccfd4bc4af8484865.zip |
Fix memory leaks.
Push builtin URIs (rdf:type, etc) on parser creation/deletion, rather than at each parse.
git-svn-id: http://svn.drobilla.net/serd/trunk@67 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r-- | src/serd_internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h index 7adf1567..4fa2a2c5 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -121,4 +121,10 @@ serd_strlen(const uint8_t* utf8, size_t* out_n_bytes) return n_chars; } +static inline void +serd_node_free(SerdNode* node) +{ + free((uint8_t*)node->buf); // FIXME: ick, const cast +} + #endif // SERD_INTERNAL_H |