[Bug 523793] New: circuslinux-1.0.3-1259.2: possible memory leak
http://bugzilla.novell.com/show_bug.cgi?id=523793 Summary: circuslinux-1.0.3-1259.2: possible 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 circuslinux-1.0.3-1259.2 For source code file circuslinux-1.0.3/circuslinux.c, around line 3431 is the source code for the function open_option_file. I notice the following code filename = (char *) malloc(sizeof(char) * (strlen(home) + strlen("/.circuslinux") + 1)); but no matching call to free. This looks like a memory leak to me. Suggest code rework by adding a call to free near the end of the routine. Maybe #ifdef LINUX free( filename); #endif return fi; would be enough. -- 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=523793
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=523793
Pavol Rusnak
http://bugzilla.novell.com/show_bug.cgi?id=523793
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523793#c1
--- Comment #1 from Richard Guenther
https://bugzilla.novell.com/show_bug.cgi?id=523793
https://bugzilla.novell.com/show_bug.cgi?id=523793#c2
Pavol Rusnak
participants (1)
-
bugzilla_noreply@novell.com