Commit 61164112 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Fixes CID1396261
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e740e9c7
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment