From b384daafde219b9f29e1fd737e433057d5fe5899 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 19 Jun 2014 11:09:20 +0200 Subject: [PATCH] winhttp: Fix a typo to properly release connection handle Fixes a rather large memory leak in HTTP fetches. --- src/libstrongswan/plugins/winhttp/winhttp_fetcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c index 4a822bd9e4..6ab8662340 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 { -- 2.47.2