From 7457da3698c641212bb921cfb0aa0e7853fdda48 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Oct 2012 16:45:50 +0200 Subject: [PATCH] drawtext: fix leak with timecodes Fixes CID733799 Signed-off-by: Michael Niedermayer --- libavfilter/vf_drawtext.c | 1 + 1 file changed, 1 insertion(+) 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); }