From: Martin Willi Date: Thu, 19 Jun 2014 09:09:20 +0000 (+0200) Subject: winhttp: Fix a typo to properly release connection handle X-Git-Tag: 5.2.0rc1~32 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=b384daafde219b9f29e1fd737e433057d5fe5899 winhttp: Fix a typo to properly release connection handle Fixes a rather large memory leak in HTTP fetches. --- diff --git a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c index 4a822bd..6ab8662 100644 --- a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c +++ b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c @@ -280,7 +280,7 @@ METHOD(fetcher_t, fetch, status_t, { DBG1(DBG_LIB, "opening request failed: %u", GetLastError()); } - WinHttpCloseHandle(connect); + WinHttpCloseHandle(connection); } else {