GNOME Bugzilla – Bug 100682
Possible leak in configuration handling
Last modified: 2004-12-22 21:47:04 UTC
Found in memprof when running gweather applet: Leaked 0x8085798 (5 bytes) malloc(): /gnome/head/cvs/memprof/memintercept.c:89 g_malloc(): /gnome/head/cvs/glib/glib/gmem.c:137 g_strndup(): /gnome/head/cvs/glib/glib/gstrfuncs.c:124 parse_line(): /gnome/head/cvs/gnome-vfs/libgnomevfs/gnome-vfs-configuration.c:248 parse_file(): /gnome/head/cvs/gnome-vfs/libgnomevfs/gnome-vfs-configuration.c:341 configuration_load(): /gnome/head/cvs/gnome-vfs/libgnomevfs/gnome-vfs-configuration.c:388 gnome_vfs_configuration_init(): /gnome/head/cvs/gnome-vfs/libgnomevfs/gnome-vfs-configuration.c:477 gnome_vfs_init(): /gnome/head/cvs/gnome-vfs/libgnomevfs/gnome-vfs-init.c:132 gnome_vfs_post_args_parse(): /gnome/head/cvs/libgnome/libgnome/gnome-init.c:410 gnome_program_postinit(): /gnome/head/cvs/libgnome/libgnome/gnome-program.c:1632 gnome_program_initv(): /gnome/head/cvs/libgnome/libgnome/gnome-program.c:1882 gnome_program_init(): /gnome/head/cvs/libgnome/libgnome/gnome-program.c:1685 main(): /gnome/head/cvs/gnome-applets/gweather/main.c:57 __libc_start_main(): /usr/src/build/151052-i686/BUILD/glibc-2.2.4/csu/../sysdeps/generic/libc-start.c:129 _start()
Created attachment 12866 [details] [review] patch which seems to fix the leak
The CDDA method was defined in cdda-module.conf and in default-modules.conf, but when we add a method to method_to_module_patch, we weren't checking if there was already a method with the same name, hence the leak. kmaraas confirmed on irc that the leak was gone with this patch applied
Bleh, there was already a patch for that bug :( *** This bug has been marked as a duplicate of 100008 ***