From: Ruben Kerkhof Date: Sat, 28 Nov 2015 22:17:59 +0000 (+0100) Subject: irq plugin: close file descriptor on failure X-Git-Tag: collectd-5.5.1~40^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=032cea5c9a5335f497e3e5a5784672a5a4aa0d49;p=collectd.git irq plugin: close file descriptor on failure CID 38018 --- diff --git a/src/irq.c b/src/irq.c index 6afacf0d..93f3f53b 100644 --- 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); }