From: Florian Forster Date: Tue, 8 Mar 2011 08:36:13 +0000 (+0100) Subject: processes plugin: Call kvm_close() after kvm_geterr(). X-Git-Tag: collectd-4.9.5~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=77f4a7f72ac4db1a7cb6b4da612211f2fdd93bfb;p=collectd.git processes plugin: Call kvm_close() after kvm_geterr(). --- diff --git a/src/processes.c b/src/processes.c index 856296cc..99af276a 100644 --- a/src/processes.c +++ b/src/processes.c @@ -1492,9 +1492,9 @@ static int ps_read (void) procs = kvm_getprocs(kd, KERN_PROC_ALL, 0, &count); if (procs == NULL) { - kvm_close (kd); ERROR ("processes plugin: Cannot get kvm processes list: %s", kvm_geterr(kd)); + kvm_close (kd); return (0); }