avfilter/af_dynaudnorm: do not leak frame on error

release/5.1
Paul B Mahol 3 years ago
parent 4e33bae9f9
commit 9a86e5338c
  1. 2
      libavfilter/af_dynaudnorm.c

@ -661,11 +661,13 @@ static int analyze_frame(DynamicAudioNormalizerContext *s, AVFilterLink *outlink
}
ret = av_frame_copy_props(out, *frame);
if (ret < 0) {
av_frame_free(frame);
av_frame_free(&out);
return ret;
}
ret = av_frame_copy(out, *frame);
if (ret < 0) {
av_frame_free(frame);
av_frame_free(&out);
return ret;
}

Loading…
Cancel
Save