diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c index d15feb7beb4..3da71bf4ec1 100644 --- a/dlls/advapi32/cred.c +++ b/dlls/advapi32/cred.c @@ -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; }