Commit fc6ca373 authored by Paul B Mahol's avatar Paul B Mahol

lavfi/aecho: fix invalid free

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent f486d7e9
......@@ -93,7 +93,7 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&s->samples);
if (s->delayptrs)
av_freep(s->delayptrs[0]);
av_freep(&s->delayptrs[0]);
av_freep(&s->delayptrs);
}
......@@ -256,7 +256,7 @@ static int config_output(AVFilterLink *outlink)
if (s->delayptrs)
av_freep(s->delayptrs[0]);
av_freep(&s->delayptrs[0]);
av_freep(&s->delayptrs);
return av_samples_alloc_array_and_samples(&s->delayptrs, NULL,
......
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