[FFmpeg-devel] [PATCH] lavd/lavfi: fix two memleaks.

Nicolas George nicolas.george at normalesup.org
Thu Dec 15 19:51:38 CET 2011


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavdevice/lavfi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 04dc3b2..cd73234 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -71,6 +71,7 @@ av_cold static int lavfi_read_close(AVFormatContext *avctx)
 
     av_freep(&lavfi->sink_stream_map);
     av_freep(&lavfi->stream_sink_map);
+    av_freep(&lavfi->sinks);
     avfilter_graph_free(&lavfi->graph);
 
     return 0;
@@ -252,6 +253,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
     }
 
 end:
+    av_free(pix_fmts);
     avfilter_inout_free(&input_links);
     avfilter_inout_free(&output_links);
     if (ret < 0)
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list