[FFmpeg-cvslog] avfilter/af_dynaudnorm: do not leak frame on error

Paul B Mahol git at videolan.org
Mon Feb 28 22:59:17 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 28 09:06:20 2022 +0100| [9a86e5338c5d140965e17e258a62c4c9499e7a54] | committer: Paul B Mahol

avfilter/af_dynaudnorm: do not leak frame on error

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a86e5338c5d140965e17e258a62c4c9499e7a54
---

 libavfilter/af_dynaudnorm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c
index 8015c8429c..77899474bf 100644
--- a/libavfilter/af_dynaudnorm.c
+++ b/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;
             }



More information about the ffmpeg-cvslog mailing list