avformat/avio: fix memory leak in url_find_protocol

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Yong Lei 2016-05-17 13:21:45 -07:00 committed by Michael Niedermayer
parent 2875745d35
commit 7bacf74536
1 changed files with 1 additions and 0 deletions

View File

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