[Bug 547730] New: libdatrie0-0.1.3-37.25: memory leak
http://bugzilla.novell.com/show_bug.cgi?id=547730 Summary: libdatrie0-0.1.3-37.25: memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Minor 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 libdatrie0-0.1.3-37.25 source code file libdatrie-0.1.3/datrie/alpha-map.c function alpha_map_open I notice the following code range = (AlphaRange *) malloc (sizeof (AlphaRange)); /* read the range * format: [b,e] * where: b = begin char, e = end char; both in hex values */ if (sscanf (line, " [ %x , %x ] ", &b, &e) != 2) continue; so if the continue is taken, then range is a memory leak. Suggest new code /* read the range * format: [b,e] * where: b = begin char, e = end char; both in hex values */ if (sscanf (line, " [ %x , %x ] ", &b, &e) != 2) continue; range = (AlphaRange *) malloc (sizeof (AlphaRange)); -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=547730
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=547730
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547730#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=547730
User uli@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=547730#c2
Ulrich Hecht
participants (1)
-
bugzilla_noreply@novell.com