1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffprobe: free shared writer context on exit

Fix leak.

Spotted-by: Michael Niedermayer
This commit is contained in:
Stefano Sabatini 2013-12-03 21:25:36 +01:00
parent babb611d35
commit 704cc5e75d

View File

@ -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);
}