---
 components/wifi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/wifi.c b/components/wifi.c
index 13b630a..af175fd 100644
--- a/components/wifi.c
+++ b/components/wifi.c
@@ -31,6 +31,7 @@
                        return NULL;
                }
                if(!(p = fgets(status, 5, fp)) || strcmp(status, "up\n") != 0) {
+                       fclose(fp);
                        return NULL;
                }
                fclose(fp);
-- 
2.17.0


Reply via email to