WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140889
Plug leak in jsValueWithDictionaryInContext().
https://bugs.webkit.org/show_bug.cgi?id=140889
Summary
Plug leak in jsValueWithDictionaryInContext().
Andreas Kling
Reported
2015-01-26 11:03:51 PST
There's a JSStringRef leak below jsValueWithDictionaryInContext() according to leaks bot. Let's plug it.
Attachments
Patch
(1.37 KB, patch)
2015-01-26 11:04 PST
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2015-01-26 11:04:31 PST
Created
attachment 245356
[details]
Patch
David Kilzer (:ddkilzer)
Comment 2
2015-01-26 11:36:44 PST
Comment on
attachment 245356
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=245356&action=review
> Source/WebCore/platform/mac/SerializedPlatformRepresentationMac.mm:199 > JSStringRef name = JSStringCreateWithCFString((CFStringRef)key); > JSObjectSetProperty([context JSGlobalContextRef], resultObject, name, [value JSValueRef], 0, &exception); > + JSStringRelease(name);
Can we annotate JSStringCreateWithCFString() and JSStringRelease() so the clang static analyzer will find these leaks for us?
WebKit Commit Bot
Comment 3
2015-01-26 12:57:38 PST
Comment on
attachment 245356
[details]
Patch Clearing flags on attachment: 245356 Committed
r179137
: <
http://trac.webkit.org/changeset/179137
>
WebKit Commit Bot
Comment 4
2015-01-26 12:57:42 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug