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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1384%2Fhead;p=thirdparty%2Fcollectd.git irq plugin: close file descriptor on failure CID 38018 --- diff --git a/src/irq.c b/src/irq.c index 6afacf0d0..93f3f53be 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); }