From 1788961a9bd57a0915091d9874e45b2cbac4e990 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Sat, 21 Dec 2019 11:07:05 -0500 Subject: [PATCH] Fix broken close handling --- pigpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigpio.c b/pigpio.c index 2d80aed..c9688ba 100644 --- a/pigpio.c +++ b/pigpio.c @@ -13582,8 +13582,8 @@ unsigned gpioHardwareRevision(void) } } } + fclose(filp); } - fclose(filp); } if (rev == 0)