GNOME Bugzilla – Bug 683094
gclosure: valgrind reports possible lost blocks for g_closure_new_simple()
Last modified: 2012-09-12 06:19:24 UTC
I'm running ephy under valgrind and I see *lots* of these warnings. ==21821== 72 bytes in 1 blocks are possibly lost in loss record 8,099 of 13,040 ==21821== at 0x4A06F18: calloc (vg_replace_malloc.c:566) ==21821== by 0x8D7C4CB: standard_calloc (gmem.c:104) ==21821== by 0x8D7C567: g_malloc0 (gmem.c:189) ==21821== by 0x8CD8B6B: g_closure_new_simple (gclosure.c:206) ==21821== by 0x8CDACB7: g_cclosure_new (gclosure.c:917) ==21821== by 0x8CF4EEA: g_signal_connect_data (gsignal.c:2447) Checking at the code, it doesn't seem to be a bug (the unref method takes care of freeing the real closure, but I am not sure so I file it anyway.
It might be valgrind not grokking that we're keeping a pointer into the block but none to the first address of the block.
I'll close this then. I hope we add this to the glib suppressions file (bug 666114).