diff options
-rw-r--r-- | src/_native.c | 1 |
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); |