From 704cc5e75df3a1dc68581d3857a06d502d8662b6 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 3 Dec 2013 21:25:36 +0100 Subject: [PATCH] ffprobe: free shared writer context on exit Fix leak. Spotted-by: Michael Niedermayer --- ffprobe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffprobe.c b/ffprobe.c index 43f830b495..46c232e1da 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); }