X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Firq.c;h=0f1d3f0ce50954ffd7d4524a52cd36d5bd884744;hb=915fb28ee1a2fb80f1f0b73f2869bcf981c932c2;hp=6afacf0d0dfbee2ad740a00de6200ff66e289d11;hpb=a761816a12f3238246d301719888bbb63b6b1e7c;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 6afacf0d..0f1d3f0c 100644 --- a/src/irq.c +++ b/src/irq.c @@ -22,9 +22,9 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" -#include "configfile.h" #include "utils_ignorelist.h" #if !KERNEL_LINUX @@ -120,6 +120,7 @@ static int irq_read (void) } else { ERROR ("irq plugin: unable to get CPU count from first line " "of /proc/interrupts"); + fclose (fh); return (-1); }