Commit 7bacf745 authored by Yong Lei's avatar Yong Lei Committed by Michael Niedermayer

avformat/avio: fix memory leak in url_find_protocol

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2875745d
......@@ -282,6 +282,7 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
return up;
}
}
av_freep(&protocols);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment