[FFmpeg-cvslog] avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
Michael Niedermayer
git at videolan.org
Sun Jan 22 00:37:05 EET 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Jan 21 23:07:02 2017 +0100| [61164112a51ca0a3c71d967894cb5c5b03c69183] | committer: Michael Niedermayer
avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
Fixes CID1396261
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61164112a51ca0a3c71d967894cb5c5b03c69183
---
libavfilter/avf_showspectrum.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 8a08b20..8776668 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);
}
}
}
More information about the ffmpeg-cvslog
mailing list