Commit 05924e14 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_anequalizer: Fix memleak of args

Fixes CID1351355
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e7786959
...@@ -585,6 +585,7 @@ static int config_input(AVFilterLink *inlink) ...@@ -585,6 +585,7 @@ static int config_input(AVFilterLink *inlink)
s->filters = av_calloc(inlink->channels, 32 * sizeof(*s->filters)); s->filters = av_calloc(inlink->channels, 32 * sizeof(*s->filters));
if (!s->filters) { if (!s->filters) {
s->nb_allocated = 0; s->nb_allocated = 0;
av_free(args);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
......
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