![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=546039 Summary: bug-buddy-2.28.0-1.1: memory leak for bad xml file Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package bug-buddy-2.28.0-1.1 source code file bug-buddy-2.28.0/src/bug-buddy.c function get_gnome_version_info I notice the following code version = g_new0 (GnomeVersionInfo, 1); xml_file = g_build_filename (DATADIR, "gnome-about/gnome-version.xml", NULL); doc = xmlParseFile (xml_file); g_free (xml_file); if (!doc) return NULL; so if the xmlParseFile returns NULL, then the return is taken and local variable version has not been freed, which causes a memory leak. Suggest new code version = g_new0 (GnomeVersionInfo, 1); xml_file = g_build_filename (DATADIR, "gnome-about/gnome-version.xml", NULL); doc = xmlParseFile (xml_file); g_free (xml_file); if (!doc) { g_free( version); return NULL; } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.