X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fopus.c;h=1eeb92c5bde65ba33b5d4de4f9dd5b43da633ec5;hb=ee4aa388b2231e988eccdab652c55df080d6ad45;hp=08d94b6cbacef2d0638c955300f46a56b5ec6ecf;hpb=711b7b77763cd55d5584ae82ce5cae6d4718092d;p=ffmpeg diff --git a/libavcodec/opus.c b/libavcodec/opus.c index 08d94b6cbac..1eeb92c5bde 100644 --- a/libavcodec/opus.c +++ b/libavcodec/opus.c @@ -403,6 +403,7 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx, } else if (idx >= streams + stereo_streams) { av_log(avctx, AV_LOG_ERROR, "Invalid channel map for output channel %d: %d\n", i, idx); + av_freep(&s->channel_maps); return AVERROR_INVALIDDATA; }