From: Paul Z Date: Mon, 14 Apr 2014 06:57:22 +0000 (+1200) Subject: Bug 3955: Solaris EUI-48 lookup leaks FDs X-Git-Tag: SQUID_3_5_0_1~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cedb91070251acb1f3e27d35a181c8228a2bc06c;p=thirdparty%2Fsquid.git Bug 3955: Solaris EUI-48 lookup leaks FDs --- diff --git a/src/eui/Eui48.cc b/src/eui/Eui48.cc index aecff67abf..f97fe2b6b4 100644 --- a/src/eui/Eui48.cc +++ b/src/eui/Eui48.cc @@ -361,6 +361,8 @@ Eui::Eui48::lookup(const Ip::Address &c) set(arpReq.arp_ha.sa_data, 6); return true; + } else { + close(tmpSocket); } #elif _SQUID_FREEBSD_ || _SQUID_NETBSD_ || _SQUID_OPENBSD_ || _SQUID_DRAGONFLY_ || _SQUID_KFREEBSD_