WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
232435
[WPE][Qt] String memory leak in WPEQtView.cpp
https://bugs.webkit.org/show_bug.cgi?id=232435
Summary
[WPE][Qt] String memory leak in WPEQtView.cpp
Adrian Perez
Reported
2021-10-28 07:11:31 PDT
In WPEQtView.cpp currently there is something like this, around line 435: variant.setValue(QString(g_strdup(strValue.get()))); Note that the pointer returned by g_strdup() is not freed, and the QString constructor makes a copy of the string. Not only this makes one uneeded copy, but also the one done by g_strdup() gets leaked.
Attachments
Patch
(1.71 KB, patch)
2021-10-28 07:24 PDT
,
Adrian Perez
don.olmstead
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adrian Perez
Comment 1
2021-10-28 07:24:17 PDT
Created
attachment 442704
[details]
Patch
EWS
Comment 2
2021-10-28 09:04:56 PDT
Committed
r284983
(
243630@main
): <
https://commits.webkit.org/243630@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 442704
[details]
.
Radar WebKit Bug Importer
Comment 3
2021-10-28 09:05:29 PDT
<
rdar://problem/84759895
>
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