]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_transform/lib/CoreFoundationBasics.cpp
Security-59754.60.13.tar.gz
[apple/security.git] / OSX / libsecurity_transform / lib / CoreFoundationBasics.cpp
index cb1bb51f62cc429862c32a4b6d42fbb968a45d7d..819ff94324611ac623caba2f6574b125c1b18835 100644 (file)
@@ -46,7 +46,7 @@ CFErrorRef GetNoMemoryError()
 
 CFErrorRef GetNoMemoryErrorAndRetain()
 {
-       return (CFErrorRef) CFRetain(gNoMemory);
+       return (CFErrorRef) CFRetainSafe(gNoMemory);
 }
 
 
@@ -164,7 +164,7 @@ static CFHashCode MakeHash(CFTypeRef typeRef)
 
 
 
-static CFStringRef MakeFormattingDescription(CFTypeRef typeRef, CFDictionaryRef formatOptions)
+static CFStringRef MakeFormattingDescription(CFTypeRef typeRef, CFDictionaryRef formatOptions) CF_RETURNS_RETAINED
 {
        // get the string
        CoreFoundationHolder* tr = (CoreFoundationHolder*) typeRef;
@@ -180,7 +180,7 @@ static CFStringRef MakeFormattingDescription(CFTypeRef typeRef, CFDictionaryRef
 }
 
 
-static CFStringRef MakeDebugDescription(CFTypeRef typeRef)
+static CFStringRef MakeDebugDescription(CFTypeRef typeRef) CF_RETURNS_RETAINED
 {
        // get the string
        CoreFoundationHolder* tr = (CoreFoundationHolder*) typeRef;