RESOLVED FIXED 40873
Memory Leak in FileSystemGtk
https://bugs.webkit.org/show_bug.cgi?id=40873
Summary Memory Leak in FileSystemGtk
makefish
Reported 2010-06-18 20:39:30 PDT
Memory Leak in WebCore\platform\gtk\FileSystemGtk.cpp. There are two possiblity leaks in listDirectory. 1,filename 2,pspec
Attachments
Martin Robinson
Comment 1 2010-06-19 18:10:03 PDT
Thanks for reporting this! Can you confirm that this still exists in the latest revision ( http://trac.webkit.org/browser/trunk/WebCore/platform/gtk/FileSystemGtk.cpp )? If you, do you mind elaborating on how this memory may leak.
makefish
Comment 2 2010-06-20 18:55:25 PDT
Yes,I think the bug still exists in the latest revision,but only 1 place: The leak place is: 200 if (!dir) 201 return entries; should be: if (!dir) { if (filename != NULL) { g_free(filename); } return entries; } And because you have added line 211 g_pattern_spec_free(pspec); GPatternSpec doesn't leak any more.
Alberto Garcia
Comment 3 2013-10-09 15:19:29 PDT
I think this is already fixed (bug 39494).
Note You need to log in before you can comment on or make changes to this bug.