diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-12-03 21:25:36 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-03 21:27:14 +0100 |
commit | 704cc5e75df3a1dc68581d3857a06d502d8662b6 (patch) | |
tree | 95626f3733bdc90c6fd7c647054feff940d9b3e1 | |
parent | babb611d35417fb73f7f6ead90ee897af24bf198 (diff) | |
download | ffmpeg-704cc5e75df3a1dc68581d3857a06d502d8662b6.tar.gz |
ffprobe: free shared writer context on exit
Fix leak.
Spotted-by: Michael Niedermayer
-rw-r--r-- | ffprobe.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |