Commit 704cc5e7 authored by Stefano Sabatini's avatar Stefano Sabatini

ffprobe: free shared writer context on exit

Fix leak.

Spotted-by: Michael Niedermayer
parent babb611d
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment