From c4a3d64b38191541d87d508d27dca4d59364532b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 1 Oct 2009 18:18:46 +0200 Subject: [PATCH] Bugfix: close the filehandle when done --- src/get_wireless_info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/get_wireless_info.c b/src/get_wireless_info.c index 77bb995..1f13764 100644 --- a/src/get_wireless_info.c +++ b/src/get_wireless_info.c @@ -20,6 +20,7 @@ const char *get_wireless_essid() { if (iw_get_basic_config(skfd, wlan_interface, &cfg) >= 0) snprintf(part, sizeof(part), "%s", cfg.essid); else part[0] = '\0'; + (void)close(skfd); #else part[0] = '\0'; #endif -- 2.39.5