ffmpeg | branch: master | Paul B Mahol <[email protected]> | Mon Oct  7 11:10:45 
2019 +0200| [5b4010e88686ea40a56f016f3c27753af6b3c766] | committer: Paul B Mahol

avfilter/vf_nnedi: fix possible double free

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

 libavfilter/vf_nnedi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c
index b14aa64c04..9bad99e98a 100644
--- a/libavfilter/vf_nnedi.c
+++ b/libavfilter/vf_nnedi.c
@@ -809,8 +809,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src)
         ret = get_frame(ctx, 1);
         if (ret < 0) {
             av_frame_free(&s->dst);
-            av_frame_free(&s->src);
             av_frame_free(&s->second);
+            s->src = NULL;
             return ret;
         }
         dst = s->dst;

_______________________________________________
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