Module: libav
Branch: release/12
Commit: 4463e2345af4a0fc68bf961ea400abec5cd825be

Author:    Vittorio Giovara <vittorio.giov...@gmail.com>
Committer: Sean McGovern <gsean...@gmail.com>
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 <lu_z...@gentoo.org>

---

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

diff --git a/avprobe.c b/avprobe.c
index abaaee1..eff9c0d 100644
--- a/avprobe.c
+++ b/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;

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to