X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Firq.c;h=0f1d3f0ce50954ffd7d4524a52cd36d5bd884744;hb=368f4ecd555efbef0cdd61a18f9b3ca5115f74c2;hp=6afacf0d0dfbee2ad740a00de6200ff66e289d11;hpb=a09f2fdf0450eb76317e1b7575a12ffb926068f4;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); }