X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=0c363795c8e46a3d308799113431aafaa3db499f;hb=83d2ff540ffaa5ca8cf3f37ea428d4b4b8c8d875;hp=6afacf0d0dfbee2ad740a00de6200ff66e289d11;hpb=5e9ca5dcb56df80e9a4142a536425d1931a3c3f6;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 6afacf0d..0c363795 100644 --- a/src/irq.c +++ b/src/irq.c @@ -22,6 +22,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" #include "configfile.h" @@ -120,6 +121,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); }