From 77f4a7f72ac4db1a7cb6b4da612211f2fdd93bfb Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 8 Mar 2011 09:36:13 +0100 Subject: [PATCH] processes plugin: Call kvm_close() after kvm_geterr(). --- src/processes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2