Mailinglist Archive: opensuse-bugs (6630 mails)

< Previous Next >
[Bug 530375] New: scsirastools-1.5.8-8.4: missing call to closedir
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 12 Aug 2009 07:53:33 -0600
  • Message-id: <bug-530375-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>

Summary: scsirastools-1.5.8-8.4: missing call to closedir
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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---

I just had a look at factory package scsirastools-1.5.8-8.4

For source code file scsirastools-1.5.8/src/sgcommon.c
around line 640 is the source code for the
function find_mmdev.

I notice the following line of code

dirp = opendir (dev_dir);

but I fail to notice a matching call to closedir.
This looks like a resource leak to me. Suggest add call to closedir.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups