Commit 06abaaf2 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

secur32/tests: Don't free if not allocated.

parent a8ad5cd5
......@@ -210,13 +210,12 @@ static void testQuerySecurityPackageInfo(void)
/* there is no point in testing pkg_info->cbMaxToken since it varies
* between implementations.
*/
}
sec_status = pFreeContextBuffer(pkg_info);
ok( sec_status == SEC_E_OK,
"Return value of FreeContextBuffer() shouldn't be %s\n",
getSecError(sec_status) );
sec_status = pFreeContextBuffer(pkg_info);
ok( sec_status == SEC_E_OK,
"Return value of FreeContextBuffer() shouldn't be %s\n",
getSecError(sec_status) );
}
/* Test with a nonexistent package, test should fail */
......@@ -228,12 +227,6 @@ static void testQuerySecurityPackageInfo(void)
getSecError(SEC_E_SECPKG_NOT_FOUND));
ok(pkg_info == (void *)0xdeadbeef, "wrong pkg_info address %p\n", pkg_info);
sec_status = pFreeContextBuffer(pkg_info);
ok( sec_status == SEC_E_OK,
"Return value of FreeContextBuffer() shouldn't be %s\n",
getSecError(sec_status) );
}
START_TEST(main)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment