[libav-commits] asplit: don't leak the input buffer.

Anton Khirnov git at libav.org
Mon Jul 9 08:35:25 CEST 2012


Module: libav
Branch: master
Commit: 083d0f6be8a22ce936c4be6f17977104e516434f

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Tue Jul  3 11:26:45 2012 +0200

asplit: don't leak the input buffer.

---

 libavfilter/split.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/split.c b/libavfilter/split.c
index f1c4b92..ae810e5 100644
--- a/libavfilter/split.c
+++ b/libavfilter/split.c
@@ -118,6 +118,7 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)
     for (i = 0; i < ctx->nb_outputs; i++)
         ff_filter_samples(inlink->dst->outputs[i],
                           avfilter_ref_buffer(samplesref, ~AV_PERM_WRITE));
+    avfilter_unref_buffer(samplesref);
 }
 
 AVFilter avfilter_af_asplit = {



More information about the libav-commits mailing list