Browse code

avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()

Fixes CID1396261

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Michael Niedermayer authored on 2017/01/22 07:07:02
Showing 1 changed files
... ...
@@ -1255,6 +1255,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
1255 1255
                     if (!text)
1256 1256
                         continue;
1257 1257
                     drawtext(s->outpicref, s->w + s->start_x + 35, s->start_y + y - 5, text, 0);
1258
+                    av_free(text);
1258 1259
                 }
1259 1260
             }
1260 1261
         }