From 7bacf7453665b63ab9e2c496f82e49d9340679ba Mon Sep 17 00:00:00 2001 From: Yong Lei Date: Tue, 17 May 2016 13:21:45 -0700 Subject: avformat/avio: fix memory leak in url_find_protocol Signed-off-by: Michael Niedermayer --- libavformat/avio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/avio.c b/libavformat/avio.c index 65075932ae..efde5f30e4 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -282,6 +282,7 @@ static const struct URLProtocol *url_find_protocol(const char *filename) return up; } } + av_freep(&protocols); return NULL; } -- cgit v1.2.3