winhttp: Fix a typo to properly release connection handle
Fixes a rather large memory leak in HTTP fetches.
This commit is contained in:
@@ -280,7 +280,7 @@ METHOD(fetcher_t, fetch, status_t,
|
||||
{
|
||||
DBG1(DBG_LIB, "opening request failed: %u", GetLastError());
|
||||
}
|
||||
WinHttpCloseHandle(connect);
|
||||
WinHttpCloseHandle(connection);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user