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);
|
||||
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…
x
Reference in New Issue
Block a user