core/proxy: Fix leak found by covscan

leaked_storage: Variable "s" going out of scope leaks the storage it points to.
This commit is contained in:
Ondrej Holy 2018-08-17 16:22:56 +02:00
parent 2417a6a16c
commit 7e4fa67026

View File

@ -234,6 +234,7 @@ static BOOL http_proxy_connect(BIO* bufferedBio, const char* hostname, UINT16 po
if (status != Stream_GetPosition(s))
{
Stream_Free(s, TRUE);
WLog_ERR(TAG, "HTTP proxy: failed to write CONNECT request");
return FALSE;
}