Skip to content

Commit fbd3466

Browse files
committed
Merge pull request #144 from kovpas/fix_cfutilities_crash
Return copy of path
2 parents 74170bf + 1ed783b commit fbd3466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Base.subproj/CFUtilities.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static CFStringRef copySystemVersionPath(CFStringRef suffix) {
309309
if (!simulatorRoot) simulatorRoot = "/";
310310
return CFStringCreateWithFormat(kCFAllocatorSystemDefault, NULL, CFSTR("%s%@"), simulatorRoot, suffix);
311311
#else
312-
return suffix;
312+
return CFStringCreateCopy(kCFAllocatorSystemDefault, suffix);
313313
#endif
314314
}
315315

0 commit comments

Comments
 (0)