summaryrefslogtreecommitdiff
path: root/libavutil/channel_layout.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-15 15:44:53 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-15 16:18:10 +0100
commit9e241bdffd310711c48799cb7a919df61488432c (patch)
tree4597f587183cb09b42f1e5d37748d2a0892e0bb4 /libavutil/channel_layout.c
parent5b59c072f503a448c7988d27e6e60ee8cf8cdf6d (diff)
downloadffmpeg-9e241bdffd310711c48799cb7a919df61488432c.tar.gz
avutil/channel_layout: Fix leak of string
Fixes memleaks in the channel_layout FATE-test. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/channel_layout.c')
-rw-r--r--libavutil/channel_layout.c1
1 files changed, 1 insertions, 0 deletions
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;
}