Code

madwifi plugin: fix buffer overflows
[collectd.git] / src / irq.c
index 6afacf0d0dfbee2ad740a00de6200ff66e289d11..93f3f53bea09b964db1f32109c88faf685465e15 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
@@ -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);
        }