[FFmpeg-cvslog] avfilter/vf_signature: Fix leak of inpads' names

Andreas Rheinhardt git at videolan.org
Thu Aug 27 00:54:55 EEST 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Tue Aug 25 00:20:01 2020 +0200| [37838417b8045fa3a49acc55546c741d3f2ac602] | committer: Andreas Rheinhardt

avfilter/vf_signature: Fix leak of inpads' names

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

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

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

diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c
index 5ea55d5247..d09003746c 100644
--- a/libavfilter/vf_signature.c
+++ b/libavfilter/vf_signature.c
@@ -730,6 +730,8 @@ static av_cold void uninit(AVFilterContext *ctx)
         }
         av_freep(&sic->streamcontexts);
     }
+    for (unsigned i = 0; i < ctx->nb_inputs; i++)
+        av_freep(&ctx->input_pads[i].name);
 }
 
 static int config_output(AVFilterLink *outlink)



More information about the ffmpeg-cvslog mailing list