mirror of https://git.videolan.org/git/ffmpeg.git
avfilter/af_dynaudnorm: do not leak frame on error
This commit is contained in:
parent
4e33bae9f9
commit
9a86e5338c
|
@ -661,11 +661,13 @@ static int analyze_frame(DynamicAudioNormalizerContext *s, AVFilterLink *outlink
|
||||||
}
|
}
|
||||||
ret = av_frame_copy_props(out, *frame);
|
ret = av_frame_copy_props(out, *frame);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
av_frame_free(frame);
|
||||||
av_frame_free(&out);
|
av_frame_free(&out);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
ret = av_frame_copy(out, *frame);
|
ret = av_frame_copy(out, *frame);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
av_frame_free(frame);
|
||||||
av_frame_free(&out);
|
av_frame_free(&out);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue