Skip to content

Commit 1ed783b

Browse files
committed
Return copy of path
1 parent 7c37fe7 commit 1ed783b

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)