James Hawkins : wintrust: Fix a memory leak until our implementation is fixed.
Alexandre Julliard
julliard at winehq.org
Thu Jan 7 13:08:36 CST 2010
Module: wine
Branch: master
Commit: b2d1c3eeecac64d77243450ce9446e2115e4f30e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b2d1c3eeecac64d77243450ce9446e2115e4f30e
Author: James Hawkins <truiken at gmail.com>
Date: Wed Jan 6 18:26:57 2010 -0800
wintrust: Fix a memory leak until our implementation is fixed.
---
dlls/wintrust/tests/crypt.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c
index 3e77814..a2e096a 100644
--- a/dlls/wintrust/tests/crypt.c
+++ b/dlls/wintrust/tests/crypt.c
@@ -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);
More information about the wine-cvs
mailing list