Commit 0204e6e3 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

advapi32/tests: Only free GetSecurityInfo pointer on success.

parent ab0488d7
...@@ -8083,7 +8083,7 @@ static void test_pseudo_handle_security(void) ...@@ -8083,7 +8083,7 @@ static void test_pseudo_handle_security(void)
"key %p: got error %u\n", keys[i], ret); "key %p: got error %u\n", keys[i], ret);
else else
ok(!ret, "key %p: got error %u\n", keys[i], ret); ok(!ret, "key %p: got error %u\n", keys[i], ret);
LocalFree(sd_ptr); if (!ret) LocalFree(sd_ptr);
ret = GetSecurityInfo(keys[i], SE_KERNEL_OBJECT, ret = GetSecurityInfo(keys[i], SE_KERNEL_OBJECT,
DACL_SECURITY_INFORMATION, NULL, NULL, NULL, NULL, &sd_ptr); DACL_SECURITY_INFORMATION, NULL, NULL, NULL, NULL, &sd_ptr);
......
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