mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
cbs_h264: Fix memory leak in error case
Fixes CID 1419834.
This commit is contained in:
parent
d792613bad
commit
41272e112b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user