summaryrefslogtreecommitdiff
path: root/tools/l2test.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-08-12 18:05:57 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-08-13 14:05:51 +0300
commit5f6f6623b407aa09f60c87f631e7badb2601f09f (patch)
tree22dbea36450d944d33b57e775d72424ba96aef94 /tools/l2test.c
parent457d44d3ded86a1196883b5ec05a91514d69f564 (diff)
downloadbluez-5f6f6623b407aa09f60c87f631e7badb2601f09f.tar.gz
tools/l2test: Fix resource leaks
Diffstat (limited to 'tools/l2test.c')
-rw-r--r--tools/l2test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/l2test.c b/tools/l2test.c
index 386823f8a..d4e3ae608 100644
--- a/tools/l2test.c
+++ b/tools/l2test.c
@@ -592,6 +592,7 @@ static void do_listen(void (*handler)(int sk))
if (socktype == SOCK_DGRAM) {
handler(sk);
+ close(sk);
return;
}