summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-18 15:13:52 -0400
committerDavid Robillard <d@drobilla.net>2016-09-18 15:13:52 -0400
commit7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c (patch)
treedd5b03025c8984da6b52f5d1653ac140bf81c7e1 /src/plugin.c
parent7a68f1e59abd84574d8b8ccf6289b6c01bf428c6 (diff)
downloadlilv-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.c3
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;
}