From: Paul Z Date: Fri, 18 Apr 2014 18:45:17 +0000 (-0600) Subject: Bug 3955: Solaris EUI-48 lookup leaks FDs X-Git-Tag: SQUID_3_4_4_1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83afe4fcf2eb9b2dcda7ea71f72216cd7def7737;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_