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>
pull/244/merge
Vittorio Giovara 9 years ago committed by Luca Barbato
parent 8db804e8f5
commit 95f8029345
  1. 2
      avprobe.c

@ -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;

Loading…
Cancel
Save