diff options
author | David Robillard <d@drobilla.net> | 2016-09-18 15:13:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-18 15:13:52 -0400 |
commit | 7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c (patch) | |
tree | dd5b03025c8984da6b52f5d1653ac140bf81c7e1 /src/plugin.c | |
parent | 7a68f1e59abd84574d8b8ccf6289b6c01bf428c6 (diff) | |
download | lilv-7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c.tar.gz lilv-7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c.tar.bz2 lilv-7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c.zip |
Fix memory, file, and library leaks
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c index f8ab26a..5e10d7c 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -210,6 +210,8 @@ lilv_plugin_load(LilvPlugin* p) if (st > SERD_FAILURE) { p->loaded = true; p->parse_errors = true; + serd_reader_free(reader); + serd_env_free(env); return; } @@ -287,6 +289,7 @@ lilv_plugin_load_ports_if_necessary(const LilvPlugin* const_p) lilv_node_as_uri(p->plugin_uri), lilv_node_as_string(symbol)); lilv_node_free(symbol); + lilv_node_free(index); lilv_plugin_free_ports(p); break; } |