Mailinglist Archive: opensuse-bugs (6630 mails)

< Previous Next >
[Bug 530329] New: sblim-cmpi-ssh_service_profile-1.0.0-36.4: missing call to pclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 12 Aug 2009 06:27:19 -0600
  • Message-id: <bug-530329-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>

Summary: sblim-cmpi-ssh_service_profile-1.0.0-36.4: missing
call to pclose
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 sblim-cmpi-ssh_service_profile-1.0.0-36.4

For source code file sblim-cmpi-ssh_service_profile-1.0.0/src/Resource.c
around line 150 is the source code for the
function GetSSHSessions.

I notice the following line of code

if (!(is = popen("/bin/netstat -tnp 2> /dev/null", "r")))

but I fail to notice a matching call to pclose at the end of the
routine. This looks like a resource leak to me.
Suggest add call to pclose.

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

< Previous Next >
Follow Ups