Skip to content

Commit a744b21

Browse files
authored
Merge pull request #793 from smallstep/mariano/data-protection-keychain
Add support for the Data Protection Keychain
2 parents 76856fe + 8bd986b commit a744b21

File tree

3 files changed

+449
-67
lines changed

3 files changed

+449
-67
lines changed

internal/darwin/corefoundation/core_foundation_darwin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ type TypeReferer interface {
4343
}
4444

4545
func Release(ref TypeReferer) {
46-
C.CFRelease(ref.TypeRef())
46+
if tr := ref.TypeRef(); tr != nilCFType {
47+
C.CFRelease(tr)
48+
}
4749
}
4850

4951
func Retain(ref TypeReferer) {

0 commit comments

Comments
 (0)