[FFmpeg-cvslog] avutil/channel_layout: Fix leak of string

Andreas Rheinhardt git at videolan.org
Tue Mar 15 17:18:55 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Mar 15 15:44:53 2022 +0100| [9e241bdffd310711c48799cb7a919df61488432c] | committer: Andreas Rheinhardt

avutil/channel_layout: Fix leak of string

Fixes memleaks in the channel_layout FATE-test.

Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e241bdffd310711c48799cb7a919df61488432c
---

 libavutil/channel_layout.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/channel_layout.c b/libavutil/channel_layout.c
index 05ed35c078..8cc4efe4cf 100644
--- a/libavutil/channel_layout.c
+++ b/libavutil/channel_layout.c
@@ -587,6 +587,7 @@ int av_channel_layout_from_string(AVChannelLayout *channel_layout,
             av_free(channel);
             av_free(chname);
         }
+        av_free(chlist);
 
         return 0;
     }



More information about the ffmpeg-cvslog mailing list