crypt32/tests: Fix memory leak in test.

This commit is contained in:
Juan Lang 2009-12-05 16:21:21 -08:00 committed by Alexandre Julliard
parent 035c323054
commit bab1c652ae
1 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,8 @@ static void test_simpleroundtrip(const char *plaintext)
ok(res != 0, "can't unprotect; last error %u\n", GetLastError()); 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(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); 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) START_TEST(protectdata)