1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
From: Helmut Grohne <helmut@subdivi.de>
Date: Sat, 11 Nov 2023 18:18:40 +0100
Subject: fix a resource leak of comments on input parsing failure
---
src/formats.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/formats.c b/src/formats.c
index 724a4cd..a9ec498 100644
--- a/src/formats.c
+++ b/src/formats.c
@@ -572,6 +572,7 @@ error:
free(ft->priv);
free(ft->filename);
free(ft->filetype);
+ sox_delete_comments(&ft->oob.comments);
free(ft);
return NULL;
}
|