diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2022-03-18 10:54:42 +0800 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-18 12:31:38 -0300 |
commit | 6f210ebae2c2e5f44312d723af8a21c87e5a612d (patch) | |
tree | 861bf12d3562a1f57f768ac16a48e91392137260 | |
parent | 31916d3d9fc61bab50ccbcc2d58bf7e7efb6c8a0 (diff) | |
download | ffmpeg-6f210ebae2c2e5f44312d723af8a21c87e5a612d.tar.gz |
avcodec/setts_bsf: fix memleak
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/setts_bsf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |