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 774817 - Memory leak in webkit_pref_callback_accept_languages
Memory leak in webkit_pref_callback_accept_languages
Status: RESOLVED DUPLICATE of bug 682723
Product: epiphany
Classification: Core
Component: General
3.22.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-21 21:33 UTC by Michael Catanzaro
Modified: 2017-03-20 21:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Catanzaro 2016-11-21 21:33:32 UTC
Note sure how to fix this one:

==844== 9 bytes in 2 blocks are definitely lost in loss record 680 of 18,577
==844==    at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==844==    by 0x18EDA8F6: g_malloc (gmem.c:94)
==844==    by 0x18EDABB3: g_malloc_n (gmem.c:331)
==844==    by 0x18EF757A: g_strndup (gstrfuncs.c:425)
==844==    by 0x18EF8123: g_ascii_strdown (gstrfuncs.c:1517)
==844==    by 0x4E488B7: ephy_langs_append_languages (ephy-langs.c:112)
==844==    by 0x50CF484: webkit_pref_callback_accept_languages (ephy-embed-prefs.c:361)
==844==    by 0x50CFA41: ephy_embed_prefs_init (ephy-embed-prefs.c:570)
==844==    by 0x18F020D6: g_once_impl (gthread.c:605)
==844==    by 0x50CFC77: ephy_embed_prefs_get_settings (ephy-embed-prefs.c:626)
==844==    by 0x50C03BD: ephy_sync_service_init (ephy-sync-service.c:617)
==844==    by 0x158E8C55: g_type_create_instance (gtype.c:1866)

I tried using g_array_set_clear_function to free the strings in the array, but it created a double free that I don't understand.
Comment 1 Michael Catanzaro 2017-03-20 21:38:27 UTC

*** This bug has been marked as a duplicate of bug 682723 ***