advapi32/tests: Fix a memory leak (Valgrind).

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Hans Leidekker 2017-03-24 15:49:22 +01:00 committed by Alexandre Julliard
parent c0b37037f5
commit fbec6c540a
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ static void test_incorrect_api_usage(void)
ok (result, "%d\n", GetLastError());
if (!result) return;
result = pCryptDestroyKey(hKey);
ok (result, "%d\n", GetLastError());
result = pCryptGenKey(hProv, CALG_RC4, 0, &hKey2);
ok (result, "%d\n", GetLastError());
if (!result) return;