avfilter/avf_concat: Use av_freep(), avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Nov 2014 17:44:35 +0000 (18:44 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Nov 2014 17:47:26 +0000 (18:47 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avf_concat.c

index 266bb36..088d782 100644 (file)
@@ -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 = {