summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lbdecision.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lbdecision.cc b/src/lbdecision.cc
index 1ec21a7..192a98b 100644
--- a/src/lbdecision.cc
+++ b/src/lbdecision.cc
@@ -433,6 +433,7 @@ LBDecision::fetch_iface_addr(const string &iface)
struct in_addr in;
in.s_addr = sin->sin_addr.s_addr;
char *tmp_buf = inet_ntoa(in);
+ close(fd);
return string(tmp_buf);
}
usleep(500 * 1000); //.5 second sleep