avfilter/af_headphone : fix mem leak
authorMartin Vignali <martin.vignali@gmail.com>
Thu, 8 Nov 2018 21:26:14 +0000 (22:26 +0100)
committerMartin Vignali <martin.vignali@gmail.com>
Fri, 9 Nov 2018 20:55:32 +0000 (21:55 +0100)
report by coverity
CID 1439934
CID 1439935

libavfilter/af_headphone.c

index 760b97b..0c7e4a2 100644 (file)
@@ -475,7 +475,7 @@ static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink)
 
         ret = ff_inlink_consume_samples(ctx->inputs[i + 1], len, len, &s->in[i + 1].frame);
         if (ret < 0)
-            return ret;
+            goto fail;
         ptr = (float *)s->in[i + 1].frame->extended_data[0];
 
         if (s->hrir_fmt == HRIR_STEREO) {