aboutsummaryrefslogtreecommitdiffstats
path: root/src/_native.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/_native.c')
-rw-r--r--src/_native.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/_native.c b/src/_native.c
index 8336679..e4c31c3 100644
--- a/src/_native.c
+++ b/src/_native.c
@@ -291,6 +291,7 @@ static PyObject *
/* Get AP address */
err = iw_get_ext(fd, iface, SIOCGIWAP, &wrq);
+ close (fd);
if (err < 0) {
PyErr_SetFromErrno(PyExc_IOError);