diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-06-15 18:40:33 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-20 14:37:50 +0400 |
commit | 93bbe53c441ef3b6e3d92023f4dc99b34e47135b (patch) | |
tree | 7b10e21d4e8d5c9e522b8aade3febcbb655c8df6 /libavfilter/split.c | |
parent | 86206035d1bba0eeca0c406778358924fb51b80d (diff) |
lavfi/asplit: fix memleak
The input samples buffer must be unreferenced after it is propagated to
the output links.
Diffstat (limited to 'libavfilter/split.c')
-rw-r--r-- | libavfilter/split.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/split.c b/libavfilter/split.c index 13669c1fd1..13d26d430f 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 = { |