]> git.sesse.net Git - ffmpeg/commitdiff
avformat/concat: priv_data should be freed internally
authorLimin Wang <lance.lmwang@gmail.com>
Fri, 3 Apr 2020 13:03:06 +0000 (21:03 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Fri, 1 May 2020 14:57:29 +0000 (22:57 +0800)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavformat/concat.c

index ea3bc1dfde8c1c8d49c5345d8f2ddc24f05fc755..cfe14760ebd7015c77647c1a66e6ee0d9548a5d9 100644 (file)
@@ -75,7 +75,6 @@ static av_cold int concat_open(URLContext *h, const char *uri, int flags)
         if (uri[i] == *AV_CAT_SEPARATOR) {
             /* integer overflow */
             if (++len == UINT_MAX / sizeof(*nodes)) {
-                av_freep(&h->priv_data);
                 return AVERROR(ENAMETOOLONG);
             }
         }