Commit 95f80293 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Luca Barbato

avprobe: Fix memory leak

After init_opts() there needs to be an uninit_opts() call
to free the swscale context and other buffers.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 8db804e8
......@@ -1089,7 +1089,7 @@ int main(int argc, char **argv)
avio_flush(probe_out);
av_freep(&probe_out);
av_freep(&buffer);
uninit_opts();
avformat_network_deinit();
return ret;
......
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