From: Michael Stapelberg Date: Thu, 1 Oct 2009 16:18:46 +0000 (+0200) Subject: Bugfix: close the filehandle when done X-Git-Tag: 2.0~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4a3d64b38191541d87d508d27dca4d59364532b;p=i3%2Fi3status Bugfix: close the filehandle when done --- 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