Juan Lang : crypt32/tests: Fix memory leak in test.
Alexandre Julliard
julliard at winehq.org
Mon Dec 7 10:26:13 CST 2009
Module: wine
Branch: master
Commit: bab1c652ae87b2c1a1c59dbe0cc549e0d6a7bb60
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bab1c652ae87b2c1a1c59dbe0cc549e0d6a7bb60
Author: Juan Lang <juan.lang at gmail.com>
Date: Sat Dec 5 16:21:21 2009 -0800
crypt32/tests: Fix memory leak in test.
---
dlls/crypt32/tests/protectdata.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/tests/protectdata.c b/dlls/crypt32/tests/protectdata.c
index 91bad8e..afe74ca 100644
--- a/dlls/crypt32/tests/protectdata.c
+++ b/dlls/crypt32/tests/protectdata.c
@@ -237,6 +237,8 @@ static void test_simpleroundtrip(const char *plaintext)
ok(res != 0, "can't unprotect; last error %u\n", GetLastError());
ok(output.cbData == strlen(plaintext), "output wrong length %d for input '%s', wanted %d\n", output.cbData, plaintext, strlen(plaintext));
ok(!memcmp(plaintext, (char *)output.pbData, output.cbData), "output wrong contents for input '%s'\n", plaintext);
+ LocalFree(output.pbData);
+ LocalFree(encrypted.pbData);
}
START_TEST(protectdata)
More information about the wine-cvs
mailing list