You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
Fixes CID1396261 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1255,6 +1255,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
|
|||||||
if (!text)
|
if (!text)
|
||||||
continue;
|
continue;
|
||||||
drawtext(s->outpicref, s->w + s->start_x + 35, s->start_y + y - 5, text, 0);
|
drawtext(s->outpicref, s->w + s->start_x + 35, s->start_y + y - 5, text, 0);
|
||||||
|
av_free(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user