Commit acb67c5b authored by Nicolas George's avatar Nicolas George Committed by Stefano Sabatini

lavd/lavfi: fix two memleaks.

Signed-off-by: 's avatarNicolas George <nicolas.george@normalesup.org>
Signed-off-by: 's avatarStefano Sabatini <stefasab@gmail.com>
parent 386aee68
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment