From 0f4825cd1ed3d139261403e46542994d74f373eb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Dec 2020 17:01:36 +0100 Subject: lv2apply: Fix potential memory leaks --- utils/lv2apply.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.1