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: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Vittorio Giovara 2016-07-21 15:47:47 +02:00 committed by Luca Barbato
parent 8db804e8f5
commit 95f8029345
1 changed files with 1 additions and 1 deletions

View File

@ -1089,7 +1089,7 @@ int main(int argc, char **argv)
avio_flush(probe_out); avio_flush(probe_out);
av_freep(&probe_out); av_freep(&probe_out);
av_freep(&buffer); av_freep(&buffer);
uninit_opts();
avformat_network_deinit(); avformat_network_deinit();
return ret; return ret;