[FFmpeg-cvslog] lavd/lavfi: fix two memleaks.
Nicolas George
git at videolan.org
Thu Dec 22 10:12:54 CET 2011
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Dec 15 19:51:38 2011 +0100| [acb67c5bbc792e68cbfea750dc110c57c021a6c5] | committer: Stefano Sabatini
lavd/lavfi: fix two memleaks.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
Signed-off-by: Stefano Sabatini <stefasab at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=acb67c5bbc792e68cbfea750dc110c57c021a6c5
---
libavdevice/lavfi.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index b042782..4f91a4b 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)
More information about the ffmpeg-cvslog
mailing list