[Webkit-unassigned] [Bug 232435] New: [WPE][Qt] String memory leak in WPEQtView.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 28 07:11:31 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=232435
Bug ID: 232435
Summary: [WPE][Qt] String memory leak in WPEQtView.cpp
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit API
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aperez at igalia.com
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211028/284dc207/attachment.htm>
More information about the webkit-unassigned
mailing list