From 7e4fa670265d5429e15bbf084875e3ae1ff0624b Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Fri, 17 Aug 2018 16:22:56 +0200 Subject: [PATCH] core/proxy: Fix leak found by covscan leaked_storage: Variable "s" going out of scope leaks the storage it points to. --- libfreerdp/core/proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreerdp/core/proxy.c b/libfreerdp/core/proxy.c index 0ec26a1..34e8363 100644 --- a/libfreerdp/core/proxy.c +++ b/libfreerdp/core/proxy.c @@ -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; } -- 2.7.4