ffmpeg | branch: master | Paul B Mahol <[email protected]> | 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;
             }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to