winhttp: Fix a typo to properly release connection handle

Fixes a rather large memory leak in HTTP fetches.
This commit is contained in:
Martin Willi 2014-06-19 11:09:20 +02:00
parent 9f950af17a
commit b384daafde

View File

@ -280,7 +280,7 @@ METHOD(fetcher_t, fetch, status_t,
{
DBG1(DBG_LIB, "opening request failed: %u", GetLastError());
}
WinHttpCloseHandle(connect);
WinHttpCloseHandle(connection);
}
else
{