Skip to content

Commit bb09cbd

Browse files
committed
Fix memory leak in _NSPrintForDebugger
1 parent 9d31226 commit bb09cbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CoreFoundation/Base.subproj/CFRuntime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,6 +1727,7 @@ const char *_NSPrintForDebugger(void *cf) {
17271727
if (!desc) {
17281728
return "<no description>";
17291729
}
1730+
CFRelease(desc);
17301731
const char *cheapResult = CFStringGetCStringPtr((CFTypeRef)cf, kCFStringEncodingUTF8);
17311732
if (cheapResult) {
17321733
return cheapResult;

0 commit comments

Comments
 (0)