[webkit-changes] [WebKit/WebKit] fea636: [JSC] Fix memory leak in JSContext.name
Commit Queue
noreply at github.com
Tue Jan 16 10:19:22 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fea636a4940daf25c3850b4f62d2574fbcc2f85e
https://github.com/WebKit/WebKit/commit/fea636a4940daf25c3850b4f62d2574fbcc2f85e
Author: Yijia Huang <yijia_huang at apple.com>
Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths:
M Source/JavaScriptCore/API/JSContext.mm
Log Message:
-----------
[JSC] Fix memory leak in JSContext.name
https://bugs.webkit.org/show_bug.cgi?id=267476
rdar://120665132
Reviewed by Yusuke Suzuki.
The caller of `JSGlobalContextCopyName` should be responsible
for managing the memory of the returned `JSStringRef`.
* Source/JavaScriptCore/API/JSContext.mm:
(-[JSContext name]):
Canonical link: https://commits.webkit.org/273075@main
More information about the webkit-changes
mailing list