avfilter/formats: remove unnecessary unreference
authorZhao Zhili <zhilizhao@tencent.com>
Mon, 30 Sep 2019 08:00:34 +0000 (16:00 +0800)
committerPaul B Mahol <onemda@gmail.com>
Tue, 8 Oct 2019 15:51:10 +0000 (17:51 +0200)
libavfilter/formats.c

index e6d27f4..33c6466 100644 (file)
@@ -317,7 +317,6 @@ do {                                                        \
     void *oldf = *f;                                        \
                                                             \
     if (!(*f) && !(*f = av_mallocz(sizeof(**f)))) {         \
-        unref_fn(f);                                        \
         return AVERROR(ENOMEM);                             \
     }                                                       \
                                                             \