diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 16:45:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 16:45:50 +0200 |
commit | 7457da3698c641212bb921cfb0aa0e7853fdda48 (patch) | |
tree | e96041820cbac3dcce4f4cde9be0d0c6642d2af8 /libavfilter | |
parent | bb35864759197ac17fe0057b0897f14b0fc54788 (diff) | |
download | ffmpeg-7457da3698c641212bb921cfb0aa0e7853fdda48.tar.gz |
drawtext: fix leak with timecodes
Fixes CID733799
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawtext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 9b7f8ee9bf..7b672712dc 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -665,6 +665,7 @@ static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref, if (dtext->tc_opt_string) { char tcbuf[AV_TIMECODE_STR_SIZE]; av_timecode_make_string(&dtext->tc, tcbuf, dtext->frame_id++); + av_free(buf); buf = av_asprintf("%s%s", dtext->text, tcbuf); } |