RebuildData structs are leaked in bridge.c
Bug #981340 reported by
Charles Kerr
This bug report is a duplicate of:
Bug #787736: RebuildData structs are leaked in rebuild() / do_rebuild().
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppMenu GTK+ |
In Progress
|
Medium
|
Charles Kerr |
Bug Description
rebuild() calls g_new0 to create a RebuildData struct "data", then uses it here:
> id = gdk_threads_
if we reach do_rebuild(), this is freed at the end of that function with a g_free():
> g_free (data);
...but rebuild() also calls g_source_
summary: |
- in bridge.c, RebuildData structs are leaked + RebuildData structs are leaked in bridge.c |
Changed in appmenu-gtk: | |
status: | New → Triaged |
importance: | Undecided → Low |
assignee: | nobody → Charles Kerr (charlesk) |
status: | Triaged → In Progress |
importance: | Low → Medium |
To post a comment you must log in.
==16918== 456 bytes in 57 blocks are definitely lost in loss record 18,190 of 19,494 valgrind/ vgpreload_ memcheck- x86-linux. so) bridge_ insert (bridge.c:908) menu_proxy_ insert (in /usr/lib/ i386-linux- gnu/libgtk- 3.so.0. 400.0) shell_insert (in /usr/lib/ i386-linux- gnu/libgtk- 3.so.0. 400.0) i386-linux- gnu/libgtk- 3.so.0. 400.0) i386-linux- gnu/libgtk- 3.so.0. 400.0) i386-linux- gnu/libgtk- 3.so.0. 400.0) i386-linux- gnu/libgtk- 3.so.0. 400.0) i386-linux- gnu/libgtk- 3.so.0. 400.0) i386-linux- gnu/libgtk- 3.so.0. 400.0) manager_ ensure_ update (in /usr/lib/ i386-linux- gnu/libgtk- 3.so.0. 400.0) i386-linux- gnu/libgtk- 3.so.0. 400.0) manager_ get_widget (in /usr/lib/ i386-linux- gnu/libgtk- 3.so.0. 400.0)
==16918== at 0x402A5E6: calloc (in /usr/lib/
==16918== by 0x4C82752: standard_calloc (gmem.c:104)
==16918== by 0x4C82E6A: g_malloc0 (gmem.c:189)
==16918== by 0x10A6426B: rebuild (bridge.c:551)
==16918== by 0x10A651A2: app_menu_
==16918== by 0x43C4DF5: ubuntu_
==16918== by 0x43C63E7: gtk_menu_
==16918== by 0x44EB3E8: ??? (in /usr/lib/
==16918== by 0x44EA414: ??? (in /usr/lib/
==16918== by 0x44EA414: ??? (in /usr/lib/
==16918== by 0x44EA414: ??? (in /usr/lib/
==16918== by 0x44EA414: ??? (in /usr/lib/
==16918== by 0x44EA414: ??? (in /usr/lib/
==16918== by 0x44EE4C7: gtk_ui_
==16918== by 0x44EE551: ??? (in /usr/lib/
==16918== by 0x44ED705: gtk_ui_