-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix memory leak in CFURL.c #2899
Conversation
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a better commit message. Additionally, it is unclear from the code that the POSIXPathToURLPath
returns a +1'ed object as it does not conform to the CF naming scheme. I think that it should at least be commented to explain why this needs changing.
|
8596f2a
to
7af5ec9
Compare
Updated commit message |
result = _CFURLCreateWithArbitraryString(allocator, newString, url->_base); | ||
} | ||
if (newComp) CFRelease(newComp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose that all paths are guaranteed to initialize newComp
, but I think it would be easier to follow with an explicit nullptr
initialization at L4789.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@swift-ci please test |
ping |
@swift-ci test and merge |
1 similar comment
@swift-ci test and merge |
No description provided.