ffprobe: free shared writer context on exit

Fix leak.

Spotted-by: Michael Niedermayer
This commit is contained in:
Stefano Sabatini 2013-12-03 21:25:36 +01:00
parent babb611d35
commit 704cc5e75d

View File

@ -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);
}