[Bug 544712] New: scsirastools-1.5.8-8.7: two resource leaks
http://bugzilla.novell.com/show_bug.cgi?id=544712 Summary: scsirastools-1.5.8-8.7: two resource leaks 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 scsirastools-1.5.8-8.7 source code file scsirastools-1.5.8/src/sgsubmon.c 1. function find_mmdev, local variable dirp I notice the following code dirp = opendir (dev_dir); but I fail to notice any matching calls to closedir. This looks like a resource leak to me. Suggest add call to closedir near the end of the function to plug the leak. 2. Same file, function find_blockdev, local variable dirp, source code dirp = opendir (sysdev_dir); -- 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=544712
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=544712
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544712#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=544712
User hare@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544712#c2
Hannes Reinecke
participants (1)
-
bugzilla_noreply@novell.com