Browse code

avfilter/af_anequalizer: Fix memleak of args

Fixes CID1351355

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Michael Niedermayer authored on 2016/02/08 08:39:15
Showing 1 changed files
... ...
@@ -585,6 +585,7 @@ static int config_input(AVFilterLink *inlink)
585 585
     s->filters = av_calloc(inlink->channels, 32 * sizeof(*s->filters));
586 586
     if (!s->filters) {
587 587
         s->nb_allocated = 0;
588
+        av_free(args);
588 589
         return AVERROR(ENOMEM);
589 590
     }
590 591