forked from Mirrors/wine-wine
wininet/tests: Fix some leaks (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
3fe501fb60
commit
aeb4394299
|
@ -112,6 +112,7 @@ static void test_connect(HINTERNET hInternet)
|
|||
ok ( hFtp != NULL, "InternetConnect failed : %d\n", GetLastError());
|
||||
ok ( GetLastError() == ERROR_SUCCESS,
|
||||
"ERROR_SUCCESS, got %d\n", GetLastError());
|
||||
InternetCloseHandle(hFtp);
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hFtp = InternetConnectA(hInternet, "ftp.winehq.org", INTERNET_DEFAULT_FTP_PORT, "", NULL,
|
||||
|
@ -125,6 +126,7 @@ static void test_connect(HINTERNET hInternet)
|
|||
{
|
||||
ok(GetLastError() == ERROR_SUCCESS,
|
||||
"Expected ERROR_SUCCESS, got %d\n", GetLastError());
|
||||
InternetCloseHandle(hFtp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue