]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/opus.c
avcodec/bsf: fix resource leak in av_bsf_list_parse_str
[ffmpeg] / libavcodec / opus.c
index 08d94b6cbacef2d0638c955300f46a56b5ec6ecf..1eeb92c5bde65ba33b5d4de4f9dd5b43da633ec5 100644 (file)
@@ -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;
         }