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>
release/5.1
Andreas Rheinhardt 3 years ago
parent 5b59c072f5
commit 9e241bdffd
  1. 1
      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;
}

Loading…
Cancel
Save