[FFmpeg-cvslog] ffprobe: free shared writer context on exit
Stefano Sabatini
git at videolan.org
Tue Dec 3 21:38:23 CET 2013
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Dec 3 21:25:36 2013 +0100| [704cc5e75df3a1dc68581d3857a06d502d8662b6] | committer: Stefano Sabatini
ffprobe: free shared writer context on exit
Fix leak.
Spotted-by: Michael Niedermayer
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=704cc5e75df3a1dc68581d3857a06d502d8662b6
---
ffprobe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffprobe.c b/ffprobe.c
index 43f830b..46c232e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -364,6 +364,7 @@ static void writer_close(WriterContext **wctx)
if ((*wctx)->writer->priv_class)
av_opt_free((*wctx)->priv);
av_freep(&((*wctx)->priv));
+ av_opt_free(*wctx);
av_freep(wctx);
}
More information about the ffmpeg-cvslog
mailing list