diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/get_wireless_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |