avfilter/af_sofalizer: fix memory leaks
authorPaul B Mahol <onemda@gmail.com>
Sun, 23 Dec 2018 20:49:30 +0000 (21:49 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 23 Dec 2018 20:49:30 +0000 (21:49 +0100)
libavfilter/af_sofalizer.c

index c30f99c..90eb353 100644 (file)
@@ -738,7 +738,7 @@ static int load_data(AVFilterContext *ctx, int azim, int elev, float radius, int
                               data_ir_r + n_samples * i,
                               &delay_l, &delay_r);
         if (ret < 0)
-            return ret;
+            goto fail;
 
         s->delay[0][i] = delay_l * sample_rate;
         s->delay[1][i] = delay_r * sample_rate;