1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/sox/fix-resource-leak-comments.patch

13 lines
327 B
Diff

From: Helmut Grohne <helmut@subdivi.de>
Subject: fix a resource leak of comments on input parsing failure
--- 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;
}