Module: libav
Branch: release/11
Commit: 7c50729df30d110c556d3a51778e9757fd21a869

Author:    Vittorio Giovara <[email protected]>
Committer: Sean McGovern <[email protected]>
Date:      Thu Jul 21 15:47:47 2016 +0200

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 <[email protected]>

---

 avprobe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/avprobe.c b/avprobe.c
index 491192a..1396afa 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -963,7 +963,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;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to