aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-12-03 21:25:36 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-12-03 21:27:14 +0100
commit704cc5e75df3a1dc68581d3857a06d502d8662b6 (patch)
tree95626f3733bdc90c6fd7c647054feff940d9b3e1
parentbabb611d35417fb73f7f6ead90ee897af24bf198 (diff)
downloadffmpeg-704cc5e75df3a1dc68581d3857a06d502d8662b6.tar.gz
ffprobe: free shared writer context on exit
Fix leak. Spotted-by: Michael Niedermayer
-rw-r--r--ffprobe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 43f830b495..46c232e1da 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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);
}