mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 23:02:16 +00:00
wintrust: Fix a memory leak until our implementation is fixed.
This commit is contained in:
parent
300cc0fea1
commit
b2d1c3eeec
|
@ -515,6 +515,8 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
|
||||||
ok(hcatinfo == NULL, "CryptCATAdminAddCatalog succeeded\n");
|
ok(hcatinfo == NULL, "CryptCATAdminAddCatalog succeeded\n");
|
||||||
ok(error == ERROR_BAD_FORMAT, "got %u expected ERROR_BAD_FORMAT\n", GetLastError());
|
ok(error == ERROR_BAD_FORMAT, "got %u expected ERROR_BAD_FORMAT\n", GetLastError());
|
||||||
}
|
}
|
||||||
|
if (hcatinfo != NULL)
|
||||||
|
pCryptCATAdminReleaseCatalogContext(hcatadmin, hcatinfo, 0);
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, basenameW, 1);
|
hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, basenameW, 1);
|
||||||
|
|
Loading…
Reference in a new issue