Skip to content

Commit

Permalink
ffprobe: free shared writer context on exit
Browse files Browse the repository at this point in the history
Fix leak.

Spotted-by: Michael Niedermayer
  • Loading branch information
saste committed Dec 3, 2013
1 parent babb611 commit 704cc5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ffprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 704cc5e

Please sign in to comment.