[FFmpeg-cvslog] avcodec/setts_bsf: fix memleak
Zhao Zhili
git at videolan.org
Fri Mar 18 17:31:56 EET 2022
ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Mar 18 10:54:42 2022 +0800| [6f210ebae2c2e5f44312d723af8a21c87e5a612d] | committer: James Almer
avcodec/setts_bsf: fix memleak
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f210ebae2c2e5f44312d723af8a21c87e5a612d
---
libavcodec/setts_bsf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c
index 3c666b5061..fadf63bc54 100644
--- a/libavcodec/setts_bsf.c
+++ b/libavcodec/setts_bsf.c
@@ -244,6 +244,8 @@ static void setts_close(AVBSFContext *bsf)
s->pts_expr = NULL;
av_expr_free(s->dts_expr);
s->dts_expr = NULL;
+ av_expr_free(s->duration_expr);
+ s->duration_expr = NULL;
}
#define OFFSET(x) offsetof(SetTSContext, x)
More information about the ffmpeg-cvslog
mailing list