advapi32: Fix memory leak on Mac OS (Clang).

This commit is contained in:
Charles Davis 2012-09-13 23:35:24 -06:00 committed by Alexandre Julliard
parent b8243b01b5
commit 4d22d68503
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require
if (!user_name_present)
{
WARN("no kSecAccountItemAttr for item\n");
SecKeychainItemFreeAttributesAndData(attr_list, cred_blob);
return ERROR_NOT_FOUND;
}