shithub: sox

Download patch

ref: 20de3746460ca48eebc4ea883d6b58f80827dfa4
parent: 52924c14fbee326334b2e4d459cbe0f2e21ceed2
author: Helmut Grohne <helmut@subdivi.de>
date: Wed Aug 16 22:02:56 EDT 2023

fix a resource leak of comments on input parsing failure

--- a/src/formats.c
+++ b/src/formats.c
@@ -627,6 +627,7 @@
   free(ft->priv);
   free(ft->filename);
   free(ft->filetype);
+  sox_delete_comments(&ft->oob.comments);
   free(ft);
   return NULL;
 }