[Webkit-unassigned] [Bug 70505] New: [GTK] [WK2] Memory leaks in WebContextGtk.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 20 08:41:43 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70505

           Summary: [GTK] [WK2] Memory leaks in WebContextGtk.cpp
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: naginenis at gmail.com


Steps To Reproduce: 
1) Build GTK WEBKIT2: 
Tools/Scripts/build-webkit --gtk --debug --enable-webkit2
2) Run MinBrowser with valgrind:
valgrind --leak-check=yes --trace-children=yes --num-callers=50 --smc-check=all --log-file=/tmp/valgrind.log ./MiniBrowser


==1343== 64 bytes in 1 blocks are definitely lost in loss record 4,318 of 6,592
==1343==    at 0x4C29097: realloc (vg_replace_malloc.c:525)
==1343==    by 0x97FB750: g_realloc (gmem.c:233)
==1343==    by 0x9814BC6: g_string_maybe_expand (gstring.c:401)
==1343==    by 0x9815286: g_string_insert_len (gstring.c:741)
==1343==    by 0x97E0106: g_build_path_va (gfileutils.c:1637)
==1343==    by 0x97E18B7: g_build_filename (gfileutils.c:1907)
==1343==    by 0x58AEB32: WebKit::WebContext::platformDefaultDatabaseDirectory() const (WebContextGtk.cpp:51)
==1343==    by 0x58D1F57: WebKit::WebContext::databaseDirectory() const (WebContext.cpp:780)
==1343==    by 0x58CF7E1: WebKit::WebContext::ensureWebProcess() (WebContext.cpp:245)
==1343==    by 0x58D0179: WebKit::WebContext::createWebPage(WebKit::PageClient*, WebKit::WebPageGroup*) (WebContext.cpp:371)
==1343==    by 0x58A406E: webkitWebViewBaseCreateWebPage (WebKitWebViewBase.cpp:440)
==1343==    by 0x58A3FC9: webkitWebViewBaseCreate (WebKitWebViewBase.cpp:422)
==1343==    by 0x5893D2E: WKViewCreate (WKView.cpp:39)
==1343==    by 0x4053D4: loadURI (main.c:61)
==1343==    by 0x4055C7: main (main.c:109)
==1343==
==1343== 64 bytes in 1 blocks are definitely lost in loss record 4,319 of 6,592
==1343==    at 0x4C29097: realloc (vg_replace_malloc.c:525)
==1343==    by 0x97FB750: g_realloc (gmem.c:233)
==1343==    by 0x9814BC6: g_string_maybe_expand (gstring.c:401)
==1343==    by 0x9815286: g_string_insert_len (gstring.c:741)
==1343==    by 0x97E0106: g_build_path_va (gfileutils.c:1637)
==1343==    by 0x97E18B7: g_build_filename (gfileutils.c:1907)
==1343==    by 0x58AEBA2: WebKit::WebContext::platformDefaultLocalStorageDirectory() const (WebContextGtk.cpp:66)
==1343==    by 0x58D2061: WebKit::WebContext::localStorageDirectory() const (WebContext.cpp:802)
==1343==    by 0x58CF81D: WebKit::WebContext::ensureWebProcess() (WebContext.cpp:246)
==1343==    by 0x58D0179: WebKit::WebContext::createWebPage(WebKit::PageClient*, WebKit::WebPageGroup*) (WebContext.cpp:371)
==1343==    by 0x58A406E: webkitWebViewBaseCreateWebPage (WebKitWebViewBase.cpp:440)
==1343==    by 0x58A3FC9: webkitWebViewBaseCreate (WebKitWebViewBase.cpp:422)
==1343==    by 0x5893D2E: WKViewCreate (WKView.cpp:39)
==1343==    by 0x4053D4: loadURI (main.c:61)
==1343==    by 0x4055C7: main (main.c:109)

Newly allocated string by g_build_filename() must be freed to avoid these leaks.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list