mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-08 00:02:19 -05:00
winhttp: Fix a typo to properly release connection handle
Fixes a rather large memory leak in HTTP fetches.
This commit is contained in:
parent
9f950af17a
commit
b384daafde
@ -280,7 +280,7 @@ METHOD(fetcher_t, fetch, status_t,
|
||||
{
|
||||
DBG1(DBG_LIB, "opening request failed: %u", GetLastError());
|
||||
}
|
||||
WinHttpCloseHandle(connect);
|
||||
WinHttpCloseHandle(connection);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user