Commit 7e0dc721 authored by James Almer's avatar James Almer

avcodec/vp9_superframe_split: fix memory leak in case of output packet creation failure

Some function calls may fail after the output packet is initialized.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 72bb9556
......@@ -126,6 +126,8 @@ static int vp9_superframe_split_filter(AVBSFContext *ctx, AVPacket *out)
return 0;
fail:
if (ret < 0)
av_packet_unref(out);
av_packet_unref(&s->buffer_pkt);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment