WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
231882
WebKit::GPUConnectionToWebProcess::setTCCIdentity() leaks a tcc_identity_t
https://bugs.webkit.org/show_bug.cgi?id=231882
Summary
WebKit::GPUConnectionToWebProcess::setTCCIdentity() leaks a tcc_identity_t
David Kilzer (:ddkilzer)
Reported
2021-10-17 14:49:15 PDT
WebKit::GPUConnectionToWebProcess::setTCCIdentity() leaks a tcc_identity_t. See
Bug 231621, Comment #24
from Alex Christensen:
> Comment on
attachment 441298
[details]
> Patch for landing > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=441298&action=review
> > > Source/WebKit/GPUProcess/cocoa/GPUConnectionToWebProcessCocoa.mm:81 > > + identity = tcc_identity_create(TCC_IDENTITY_CODE_BUNDLE_ID, [bundleProxy.bundleIdentifier UTF8String]); > > tcc_identity_create is annotated with OS_OBJECT_RETURNS_RETAINED, which > means this is probably a memory leak. It should probably be auto identity = > adoptOSObject(tcc_identity_create(...)); which means my build fix of calling > tcc_identity_t will probably also need to be changed to OS_OBJECT_DECL if > OS_OBJECT_USE_OBJC is defined.
Attachments
Patch v1
(4.00 KB, patch)
2021-10-17 16:36 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-10-17 14:50:18 PDT
<
rdar://problem/84350854
>
David Kilzer (:ddkilzer)
Comment 2
2021-10-17 15:37:01 PDT
I have a potential fix.
David Kilzer (:ddkilzer)
Comment 3
2021-10-17 15:38:02 PDT
Waiting for
Bug 231621
Attachment #441550
[details]
to land first.
David Kilzer (:ddkilzer)
Comment 4
2021-10-17 16:36:49 PDT
Created
attachment 441556
[details]
Patch v1
David Kilzer (:ddkilzer)
Comment 5
2021-10-18 08:20:28 PDT
Comment on
attachment 441556
[details]
Patch v1 Thanks Chris!
EWS
Comment 6
2021-10-18 08:30:30 PDT
Committed
r284373
(
243158@main
): <
https://commits.webkit.org/243158@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 441556
[details]
.
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