]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_dedot.c
avfilter/vf_dedot: Fix leak of AVFrame if making it writable fails
[ffmpeg] / libavfilter / vf_dedot.c
index 1fb7bfe866a1f4a0fa925dee7a35e77feb4dada0..993ac8f74fc18cf67968c1666c9361c17b56de05 100644 (file)
@@ -313,7 +313,8 @@ static int activate(AVFilterContext *ctx)
                                                FFMIN(s->planeheight[2],
                                                ff_filter_get_nb_threads(ctx)));
                     }
-                }
+                } else
+                    av_frame_free(&out);
             } else if (!out) {
                 ret = AVERROR(ENOMEM);
             }