mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 15:53:08 +00:00
lavd/lavfi: fix two memleaks.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
This commit is contained in:
parent
386aee6864
commit
acb67c5bbc
@ -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,
|
|||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user