[FFmpeg-cvslog] avfilter/avf_concat: Use av_freep(), avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Sat Nov 22 19:02:37 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 22 18:44:35 2014 +0100| [7df2981f04dceed352b362ffe6e6c5be3f27046b] | committer: Michael Niedermayer

avfilter/avf_concat: Use av_freep(), avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/avf_concat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avf_concat.c b/libavfilter/avf_concat.c
index 266bb36..088d782 100644
--- a/libavfilter/avf_concat.c
+++ b/libavfilter/avf_concat.c
@@ -409,7 +409,7 @@ static av_cold void uninit(AVFilterContext *ctx)
     }
     for (i = 0; i < ctx->nb_outputs; i++)
         av_freep(&ctx->output_pads[i].name);
-    av_free(cat->in);
+    av_freep(&cat->in);
 }
 
 AVFilter ff_avf_concat = {



More information about the ffmpeg-cvslog mailing list