summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 17:01:36 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 17:01:36 +0100
commit0f4825cd1ed3d139261403e46542994d74f373eb (patch)
treeaa0f549e1b5192a4a57cf17a4329feb0a9fb9639
parent2b158ec00eab4f48928846660be8c8d7d40ffda1 (diff)
downloadlilv-0f4825cd1ed3d139261403e46542994d74f373eb.tar.gz
lilv-0f4825cd1ed3d139261403e46542994d74f373eb.tar.bz2
lilv-0f4825cd1ed3d139261403e46542994d74f373eb.zip
lv2apply: Fix potential memory leaks
-rw-r--r--utils/lv2apply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/lv2apply.c b/utils/lv2apply.c
index 2f17a67..ba7b446 100644
--- a/utils/lv2apply.c
+++ b/utils/lv2apply.c
@@ -324,6 +324,7 @@ main(int argc, char** argv)
SF_INFO out_fmt = in_fmt;
out_fmt.channels = self.n_audio_out;
if (!(self.out_file = sopen(&self, self.out_path, SFM_WRITE, &out_fmt))) {
+ free(self.ports);
return 8;
}