Skip to content
Snippets Groups Projects
Commit 704cc5e7 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

ffprobe: free shared writer context on exit

Fix leak.

Spotted-by: Michael Niedermayer
parent babb611d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment