[FFmpeg-cvslog] avfilter/f_metadata: do not memleak expr

Paul B Mahol git at videolan.org
Mon Sep 30 13:25:47 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Sep 30 12:24:06 2019 +0200| [a6e2cf5eb0444f90b6d979f999f32def0b52b17e] | committer: Paul B Mahol

avfilter/f_metadata: do not memleak expr

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6e2cf5eb0444f90b6d979f999f32def0b52b17e
---

 libavfilter/f_metadata.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/f_metadata.c b/libavfilter/f_metadata.c
index 97e5c669fe..2ed1393cba 100644
--- a/libavfilter/f_metadata.c
+++ b/libavfilter/f_metadata.c
@@ -283,6 +283,8 @@ static av_cold void uninit(AVFilterContext *ctx)
 {
     MetadataContext *s = ctx->priv;
 
+    av_expr_free(s->expr);
+    s->expr = NULL;
     if (s->avio_context) {
         avio_closep(&s->avio_context);
     }



More information about the ffmpeg-cvslog mailing list