From acb67c5bbc792e68cbfea750dc110c57c021a6c5 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Thu, 15 Dec 2011 19:51:38 +0100 Subject: lavd/lavfi: fix two memleaks. Signed-off-by: Nicolas George Signed-off-by: Stefano Sabatini --- libavdevice/lavfi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavdevice') diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index b04278271c..4f91a4b754 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; @@ -254,6 +255,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) -- cgit v1.2.3