avformat/avio: fix memory leak in url_find_protocol
authorYong Lei <leiyong@gmail.com>
Tue, 17 May 2016 20:21:45 +0000 (13:21 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 17 May 2016 22:51:52 +0000 (00:51 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/avio.c

index 6507593..efde5f3 100644 (file)
@@ -282,6 +282,7 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
             return up;
         }
     }
+    av_freep(&protocols);
 
     return NULL;
 }