[Bug 530377] New: scsires-0.7-2.47: missing call to close
http://bugzilla.novell.com/show_bug.cgi?id=530377 Summary: scsires-0.7-2.47: 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: 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 scsires-0.7-2.47 For source code file scsires-0.7/scsires.c around line 680 is the source code for the function scsires_init_persistent_reservations. I notice the following line of code if ((fd = open(path, O_RDONLY | O_NDELAY)) == -1) { but I fail to notice a matching call to close. This looks like a resource leak to me. Suggest add call to close. -- 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=530377
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=530377
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=530377#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=530377
User xwhu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=530377#c2
Xinwei Hu
participants (1)
-
bugzilla_noreply@novell.com