[FFmpeg-cvslog] lavfi: free partial audio buffers when destroying links.
Nicolas George
git at videolan.org
Thu Aug 23 00:16:59 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Aug 22 23:31:49 2012 +0200| [c2271fa7f9a88afb374300c7320b57b870969926] | committer: Nicolas George
lavfi: free partial audio buffers when destroying links.
Fix a memleak that the recent change of architecture made
more likely to happen.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c2271fa7f9a88afb374300c7320b57b870969926
---
libavfilter/avfilter.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 861a57d..d05d4ea 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -156,6 +156,8 @@ void avfilter_link_free(AVFilterLink **link)
if ((*link)->pool)
ff_free_pool((*link)->pool);
+ avfilter_unref_bufferp(&(*link)->partial_buf);
+
av_freep(link);
}
More information about the ffmpeg-cvslog
mailing list