[FFmpeg-cvslog] avprobe: Fix memory leak

Vittorio Giovara git at videolan.org
Mon Mar 20 09:13:35 EET 2017


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Thu Jul 21 15:47:47 2016 +0200| [95f80293456d9d4b1b096621260c38bc90325ec0] | committer: 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: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=95f80293456d9d4b1b096621260c38bc90325ec0
---

 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;



More information about the ffmpeg-cvslog mailing list