aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.com>2009-10-13 12:21:36 -0300
committerEugeni Dodonov <eugeni@mandriva.com>2009-10-13 12:21:36 -0300
commitd1b91b33bec11640c86ce73cbfca5aabdc17f9b0 (patch)
tree838345db12eb86192e4c59f9c54728d82fcd28e4 /src
parent3db1778b8a92c6e6ea9dd66b72afb1b6e45ce203 (diff)
downloadnet_monitor-d1b91b33bec11640c86ce73cbfca5aabdc17f9b0.tar
net_monitor-d1b91b33bec11640c86ce73cbfca5aabdc17f9b0.tar.gz
net_monitor-d1b91b33bec11640c86ce73cbfca5aabdc17f9b0.tar.bz2
net_monitor-d1b91b33bec11640c86ce73cbfca5aabdc17f9b0.tar.xz
net_monitor-d1b91b33bec11640c86ce73cbfca5aabdc17f9b0.zip
make sure to close socket too
Diffstat (limited to 'src')
-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);