[FFmpeg-cvslog] avcodec/mlpenc: fix small memory leak
Paul B Mahol
git at videolan.org
Tue Feb 4 12:37:42 EET 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 4 11:35:02 2020 +0100| [c35382aaf471d5ba88648f22cc182b2b09b7d7fa] | committer: Paul B Mahol
avcodec/mlpenc: fix small memory leak
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c35382aaf471d5ba88648f22cc182b2b09b7d7fa
---
libavcodec/mlpenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index a9501c694f..c6a7963c22 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -2373,6 +2373,7 @@ static av_cold int mlp_encode_close(AVCodecContext *avctx)
av_freep(&ctx->decoding_params);
av_freep(&ctx->channel_params);
av_freep(&ctx->frame_size);
+ av_freep(&ctx->max_output_bits);
ff_af_queue_close(&ctx->afq);
return 0;
More information about the ffmpeg-cvslog
mailing list