ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@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 <jamr...@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@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;
     }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to