wintrust: Fix a memory leak until our implementation is fixed.

This commit is contained in:
James Hawkins 2010-01-06 18:26:57 -08:00 committed by Alexandre Julliard
parent 300cc0fea1
commit b2d1c3eeec
1 changed files with 2 additions and 0 deletions

View File

@ -515,6 +515,8 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
ok(hcatinfo == NULL, "CryptCATAdminAddCatalog succeeded\n");
ok(error == ERROR_BAD_FORMAT, "got %u expected ERROR_BAD_FORMAT\n", GetLastError());
}
if (hcatinfo != NULL)
pCryptCATAdminReleaseCatalogContext(hcatadmin, hcatinfo, 0);
SetLastError(0xdeadbeef);
hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, basenameW, 1);