summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 16:45:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 16:45:50 +0200
commit7457da3698c641212bb921cfb0aa0e7853fdda48 (patch)
treee96041820cbac3dcce4f4cde9be0d0c6642d2af8
parentbb35864759197ac17fe0057b0897f14b0fc54788 (diff)
drawtext: fix leak with timecodes
Fixes CID733799 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vf_drawtext.c1
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);
}