]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_aecho.c
Merge commit 'd5f5c90be9ec120f1320dcdd808b7bd917dee47c'
[ffmpeg] / libavfilter / af_aecho.c
index 7e7a9d575944b9dd93372bf8d2c851fa47b68c48..82049e95411b983bb8dfb095f5db979b4b1b8413 100644 (file)
@@ -279,8 +279,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
         out_frame = frame;
     } else {
         out_frame = ff_get_audio_buffer(inlink, frame->nb_samples);
-        if (!out_frame)
+        if (!out_frame) {
+            av_frame_free(&frame);
             return AVERROR(ENOMEM);
+        }
         av_frame_copy_props(out_frame, frame);
     }