[Bug 542822] New: biosdevname-0.2.4-60.40: missing call to close
http://bugzilla.novell.com/show_bug.cgi?id=542822 Summary: biosdevname-0.2.4-60.40: missing call to close Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem 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 biosdevname-0.2.4-60.40 source code file biosdevname-0.2.4/src/pcmcia.c function read_out_file local variable fd. I notice the following code fd = open(file, O_RDONLY); but I fail to notice a matching call to close. This looks like a resource leak to me. Suggest add close near the end of the function. -- 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=542822
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=542822
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=542822#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=542822
http://bugzilla.novell.com/show_bug.cgi?id=542822#c2
Torsten Duwe
participants (1)
-
bugzilla_noreply@novell.com