Skip to content
Snippets Groups Projects
Commit acb67c5b authored by Nicolas George's avatar Nicolas George Committed by Stefano Sabatini
Browse files

lavd/lavfi: fix two memleaks.

parent 386aee68
No related branches found
No related tags found
No related merge requests found
...@@ -71,6 +71,7 @@ av_cold static int lavfi_read_close(AVFormatContext *avctx) ...@@ -71,6 +71,7 @@ av_cold static int lavfi_read_close(AVFormatContext *avctx)
av_freep(&lavfi->sink_stream_map); av_freep(&lavfi->sink_stream_map);
av_freep(&lavfi->stream_sink_map); av_freep(&lavfi->stream_sink_map);
av_freep(&lavfi->sinks);
avfilter_graph_free(&lavfi->graph); avfilter_graph_free(&lavfi->graph);
return 0; return 0;
...@@ -254,6 +255,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx, ...@@ -254,6 +255,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
} }
end: end:
av_free(pix_fmts);
avfilter_inout_free(&input_links); avfilter_inout_free(&input_links);
avfilter_inout_free(&output_links); avfilter_inout_free(&output_links);
if (ret < 0) if (ret < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment