diff --git a/libavfilter/formats.c b/libavfilter/formats.c index e6d27f45f3..33c64668a0 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -317,7 +317,6 @@ do { \ void *oldf = *f; \ \ if (!(*f) && !(*f = av_mallocz(sizeof(**f)))) { \ - unref_fn(f); \ return AVERROR(ENOMEM); \ } \ \