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.6.0~555^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=54e625b5ab53312e00d7e3e5d202aae559d56f8f;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); }