diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-10-01 18:18:46 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-10-01 18:18:46 +0200 |
commit | c4a3d64b38191541d87d508d27dca4d59364532b (patch) | |
tree | 2d10b1b8706fa0f2a413e53728b7de0ddab14cc1 /src | |
parent | b2292e770ef96c8abe8cc7134e8defb0b49e902f (diff) |
Bugfix: close the filehandle when done
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 |