From 032cea5c9a5335f497e3e5a5784672a5a4aa0d49 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 28 Nov 2015 23:17:59 +0100 Subject: [PATCH] irq plugin: close file descriptor on failure CID 38018 --- src/irq.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.11.0