diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index a1b887fd4c..61729ccbb3 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -821,6 +821,7 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx, err = cbs_h264_read_sei(ctx, &bc, sei); if (err < 0) { cbs_h264_free_sei(sei); + av_free(sei); return err; }