CFErrorRef GetNoMemoryErrorAndRetain()
 {
-       return (CFErrorRef) CFRetain(gNoMemory);
+       return (CFErrorRef) CFRetainSafe(gNoMemory);
 }
 
 
 
 
 
-static CFStringRef MakeFormattingDescription(CFTypeRef typeRef, CFDictionaryRef formatOptions)
+static CFStringRef MakeFormattingDescription(CFTypeRef typeRef, CFDictionaryRef formatOptions) CF_RETURNS_RETAINED
 {
        // get the string
        CoreFoundationHolder* tr = (CoreFoundationHolder*) typeRef;
 }
 
 
-static CFStringRef MakeDebugDescription(CFTypeRef typeRef)
+static CFStringRef MakeDebugDescription(CFTypeRef typeRef) CF_RETURNS_RETAINED
 {
        // get the string
        CoreFoundationHolder* tr = (CoreFoundationHolder*) typeRef;