You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
ffprobe: fix NULL pointer dereference in writer_close()
Fix crash.
This commit is contained in:
@ -178,9 +178,11 @@ static const AVClass writer_class = {
|
|||||||
|
|
||||||
static void writer_close(WriterContext **wctx)
|
static void writer_close(WriterContext **wctx)
|
||||||
{
|
{
|
||||||
if (*wctx && (*wctx)->writer->uninit)
|
if (!*wctx)
|
||||||
(*wctx)->writer->uninit(*wctx);
|
return;
|
||||||
|
|
||||||
|
if ((*wctx)->writer->uninit)
|
||||||
|
(*wctx)->writer->uninit(*wctx);
|
||||||
av_freep(&((*wctx)->priv));
|
av_freep(&((*wctx)->priv));
|
||||||
av_freep(wctx);
|
av_freep(wctx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user