[Bug 546085] New: dante-1.1.19-135.18: two bad calls to free
http://bugzilla.novell.com/show_bug.cgi?id=546085 Summary: dante-1.1.19-135.18: two bad calls to free 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 dante-1.1.19-135.18 source code file dante-1.1.19/libscompat/getifaddrs.c function getifaddrs I notice the following code if (icnt + dcnt + ncnt == 1) { *pif = NULL; free(buf); return (0); } but char buf[1024]; so calling free on buf looks wrong. Suggest remove call to free. The same thing happens a little further down with the following code if (data == NULL) { free(buf); return(-1); } -- 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=546085
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=546085
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=546085#c1
--- Comment #1 from Richard Guenther
participants (1)
-
bugzilla_noreply@novell.com