mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/avf_showfreqs: fix possible null pointer dereference
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
47cd85e1e5
commit
b7b4d99a18
@ -459,8 +459,10 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
|
||||
av_fft_end(s->fft);
|
||||
for (i = 0; i < s->nb_channels; i++) {
|
||||
av_freep(&s->fft_data[i]);
|
||||
av_freep(&s->avg_data[i]);
|
||||
if (s->fft_data)
|
||||
av_freep(&s->fft_data[i]);
|
||||
if (s->avg_data)
|
||||
av_freep(&s->avg_data[i]);
|
||||
}
|
||||
av_freep(&s->fft_data);
|
||||
av_freep(&s->avg_data);
|
||||
|
Loading…
Reference in New Issue
Block a user