Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check for errors before CFRelease (#20)
macOS' SecKeychainFindGenericPassword can return a non-NULL item pointer even if the function fails (because the item is not found). In this case we must not try to CFRelease the item, or we'll segfault.
- Loading branch information