winhttp/tests: Free the certificate context after use.
Found by valgrind.
This commit is contained in:
parent
6732d5dfd7
commit
45b6cf8355
|
@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
|
|||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
TESTDLL = winhttp.dll
|
||||
IMPORTS = winhttp advapi32 kernel32
|
||||
IMPORTS = winhttp crypt32 advapi32 kernel32
|
||||
|
||||
CTESTS = \
|
||||
notification.c \
|
||||
|
|
|
@ -763,6 +763,7 @@ static void test_secure_connection(void)
|
|||
size = sizeof(cert);
|
||||
ret = WinHttpQueryOption(req, WINHTTP_OPTION_SERVER_CERT_CONTEXT, &cert, &size );
|
||||
ok(ret, "failed to retrieve certificate context %u\n", GetLastError());
|
||||
CertFreeCertificateContext(cert);
|
||||
|
||||
size = sizeof(bitness);
|
||||
ret = WinHttpQueryOption(req, WINHTTP_OPTION_SECURITY_KEY_BITNESS, &bitness, &size );
|
||||
|
|
Loading…
Reference in New Issue