[Bug 546088] New: dbench-3.04-148.50: memory leak
http://bugzilla.novell.com/show_bug.cgi?id=546088 Summary: dbench-3.04-148.50: memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 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 dbench-3.04-148.50 source code file dbench-3.04/fileio.c function resolve_name I notice the following code dname = strdup(name); p = strrchr(dname, '/'); if (!p) return; So if the return is taken, then dname is a memory leak. Suggest new code dname = strdup(name); p = strrchr(dname, '/'); if (!p) { free( dname); return; } -- 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=546088
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=546088
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=546088#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=546088
http://bugzilla.novell.com/show_bug.cgi?id=546088#c2
Erik Hamera
participants (1)
-
bugzilla_noreply@novell.com