diff mbox

[FFmpeg-devel] avfilter/formats: remove unnecessary unreference

Message ID 20190930080034.5793-1-quinkblack@foxmail.com
State Accepted
Commit 971c890c056d600a636df85f9b5e4f09fb780f41
Headers show

Commit Message

Zhao Zhili Sept. 30, 2019, 8 a.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

---
 libavfilter/formats.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Paul B Mahol Oct. 8, 2019, 3:55 p.m. UTC | #1
applied

On 9/30/19, quinkblack@foxmail.com <quinkblack@foxmail.com> wrote:
> From: Zhao Zhili <zhilizhao@tencent.com>
>
> ---
>  libavfilter/formats.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libavfilter/formats.c b/libavfilter/formats.c
> index 31ee445c49..15c3adf80b 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);                             \
>      }                                                       \
>                                                              \
> --
> 2.22.0
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox

Patch

diff --git a/libavfilter/formats.c b/libavfilter/formats.c
index 31ee445c49..15c3adf80b 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);                             \
     }                                                       \
                                                             \