diff options
author | Michael Niedermayer | 2017-01-21 23:07:02 +0100 |
---|---|---|
committer | Michael Niedermayer | 2017-01-21 23:07:02 +0100 |
commit | 61164112a51ca0a3c71d967894cb5c5b03c69183 (patch) | |
tree | 02b83fc05aa8104dd6aea628a215b402541b6aae | |
parent | e740e9c79807b9d0174c037a6b3062b7057d436b (diff) |
avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
Fixes CID1396261
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavfilter/avf_showspectrum.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 8a08b20cc3..87766688f8 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -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); } } } |