[FFmpeg-devel] [PATCH] fix memory leak in url_find_protocol

Yong Lei leiyong at gmail.com
Tue May 17 22:21:45 CEST 2016


---
 libavformat/avio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 6507593..efde5f3 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;
 }
-- 
2.8.0.rc3.226.g39d4020



More information about the ffmpeg-devel mailing list