[FFmpeg-devel] [PATCH 2/3] examples/filtering_audio: fix a memory leak.

Nicolas George nicolas.george at normalesup.org
Sat Apr 28 00:53:43 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 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;
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list