avfilter/af_anequalizer: Fix memleak of args
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Feb 2016 23:39:15 +0000 (00:39 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Feb 2016 23:39:15 +0000 (00:39 +0100)
Fixes CID1351355

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/af_anequalizer.c

index 649c0b9..b646814 100644 (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);
     }