GNOME Bugzilla – Bug 335322
Leak reported by valgrind (bonobo_server_info_load)
Last modified: 2006-03-21 12:11:23 UTC
==2417== 643,015 bytes in 41 blocks are definitely lost in loss record 19 of 20 ==2417== at 0x4004F82: malloc (vg_replace_malloc.c:149) ==2417== by 0x4156F22: g_try_malloc (gmem.c:196) ==2417== by 0x414319C: g_file_get_contents (gfileutils.c:642) ==2417== by 0x80547DD: bonobo_server_info_load (object-directory-load.c:571) ==2417== by 0x8052D8E: update_registry (object-directory-corba.c:206) ==2417== by 0x805610A: main (activation-server-main.c:471)
Created attachment 61673 [details] [review] proposed patch
Doh I'm a dofus :-) of course, please do commit & thanks.
except of course we want: char *contents = NULL; as well incase the 'file_read_contents' or whatever fails.
Commited.