mirror of https://git.ffmpeg.org/ffmpeg.git
cbs_h2645: Fix memory leak on when reading SEI fails
This commit is contained in:
parent
476d301316
commit
22aed77687
|
@ -821,6 +821,7 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx,
|
||||||
err = cbs_h264_read_sei(ctx, &bc, sei);
|
err = cbs_h264_read_sei(ctx, &bc, sei);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
cbs_h264_free_sei(sei);
|
cbs_h264_free_sei(sei);
|
||||||
|
av_free(sei);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue