summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-12-15 19:51:38 +0100
committerStefano Sabatini <stefasab@gmail.com>2011-12-22 10:09:51 +0100
commitacb67c5bbc792e68cbfea750dc110c57c021a6c5 (patch)
tree7352c37b5a6960434ac2cd3471eb4e1c1bb6ff1b
parent386aee6864c5cfc438785d2421b2f056450da014 (diff)
downloadffmpeg-acb67c5bbc792e68cbfea750dc110c57c021a6c5.tar.gz
lavd/lavfi: fix two memleaks.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 2 insertions, 0 deletions
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)