mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-05 12:07:49 +00:00
avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
Fixes CID1396261 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e740e9c798
commit
61164112a5
@ -1255,6 +1255,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
|
||||
if (!text)
|
||||
continue;
|
||||
drawtext(s->outpicref, s->w + s->start_x + 35, s->start_y + y - 5, text, 0);
|
||||
av_free(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user