After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 618866 - g_ptr_array_remove_index_fast memory leak
g_ptr_array_remove_index_fast memory leak
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.22.x
Other Linux
: Normal critical
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-05-17 10:16 UTC by stolz
Modified: 2010-06-20 04:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase, valgrind log and patch files (1.35 KB, application/x-gzip)
2010-05-17 10:16 UTC, stolz
Details

Description stolz 2010-05-17 10:16:18 UTC
Created attachment 161216 [details]
testcase, valgrind log and patch files

Bug was found in glib2.0-2.22.3, but also exists in glib2.0-2.24.0.

The g_ptr_array_remove_index_fast routine has memory leak, when using
array with element_free_func. Element free function isn't called for
last element in array.

Testcase, valgrind log and patch file are in attachment.