[Bug 537472] New: ami-1.2.3-314.7: memory leak
http://bugzilla.novell.com/show_bug.cgi?id=537472 Summary: ami-1.2.3-314.7: memory leak 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 ami-1.2.3-314.7 For source code file ami-1.2.3/src/edit.c around line 120, function editing_flush is the following code s = g_strdup(ic->han->buf); if (ic->han->len <= 0) return 0; This will leak memory if the return is taken. Suggest new code if (ic->han->len <= 0) return 0; s = g_strdup(ic->han->buf); to avoid the leak. -- 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=537472
zhu rensheng
http://bugzilla.novell.com/show_bug.cgi?id=537472
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537472#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=537472
http://bugzilla.novell.com/show_bug.cgi?id=537472#c2
Ruediger Oertel
participants (1)
-
bugzilla_noreply@novell.com