[FFmpeg-cvslog] examples/filtering_audio: fix a memory leak.
Nicolas George
git at videolan.org
Sat Apr 28 10:47:53 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sat Apr 28 00:43:02 2012 +0200| [8f19483d0652b43c7c2ff6b973843e4d0b769a5f] | committer: Nicolas George
examples/filtering_audio: fix a memory leak.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f19483d0652b43c7c2ff6b973843e4d0b769a5f
---
doc/examples/filtering_audio.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index 988dbfe..21b00fb 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -114,6 +114,7 @@ static int init_filters(const char *filters_descr)
abuffersink_params->packing_fmts = packing_fmts;
ret = avfilter_graph_create_filter(&buffersink_ctx, abuffersink, "out",
NULL, abuffersink_params, filter_graph);
+ av_free(abuffersink_params);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create audio buffer sink\n");
return ret;
More information about the ffmpeg-cvslog
mailing list