Fix a memory leak reported by clang static analyzer.
authorsdefresne <sdefresne@chromium.org>
Tue, 20 Sep 2016 15:53:14 +0000 (08:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 20 Sep 2016 15:53:14 +0000 (08:53 -0700)
commit388127f1927ec6ba699a925969fd38a86cf56b3a
treeeff494824452b160a275ab87ce835c8579762ef3
parent73603f3c52ffd89fe9d035be827b566a0e7d3b79
Fix a memory leak reported by clang static analyzer.

The CFStringCreateWithCString method respect the "Create Rule" [1]
regarding the ownership of the returned reference. This means that
the object needs to be deallocated explicitly by calling CFRelease.

[1]: https://developer.apple.com/library/content/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029

BUG=648210
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2354963002

Review-Url: https://codereview.chromium.org/2354963002
src/ports/SkOSFile_stdio.cpp