avfilter/af_anequalizer: Fix memleak of args

Fixes CID1351355

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-02-08 00:39:15 +01:00
parent e7786959cc
commit 05924e1440

View File

@ -585,6 +585,7 @@ static int config_input(AVFilterLink *inlink)
s->filters = av_calloc(inlink->channels, 32 * sizeof(*s->filters));
if (!s->filters) {
s->nb_allocated = 0;
av_free(args);
return AVERROR(ENOMEM);
}