ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]>

> 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);
                 }
             }
         }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to