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