Commit 41272e11 authored by Mark Thompson's avatar Mark Thompson

cbs_h264: Fix memory leak in error case

Fixes CID 1419834.
parent d792613b
......@@ -824,6 +824,7 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx,
err = cbs_h264_read_sei(ctx, &gbc, sei);
if (err < 0) {
cbs_h264_free_sei(sei);
av_free(sei);
return err;
}
......
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