Bug 1471943: Remove release call to ensure socket is closed. r=valentin
authorRobert Bartlensky <rbartlensky@mozilla.com>
Mon, 02 Jul 2018 11:45:39 +0100
changeset 814177 d53abfceeac28fda1c212383b9b9965f39ba80a9
parent 814176 ea8d583affcb29c1ab2ec0e12797a9319c6286f9
child 814178 b1585f3426c28f984e48179eed30d56297b0c95d
push id115123
push userjdescottes@mozilla.com
push dateWed, 04 Jul 2018 17:42:29 +0000
reviewersvalentin
bugs1471943
milestone63.0a1
Bug 1471943: Remove release call to ensure socket is closed. r=valentin MozReview-Commit-ID: 8RC4YdaqAdX
netwerk/base/NetworkInfoServiceLinux.cpp
--- a/netwerk/base/NetworkInfoServiceLinux.cpp
+++ b/netwerk/base/NetworkInfoServiceLinux.cpp
@@ -56,17 +56,16 @@ DoListAddresses(AddrMapType& aAddrMap)
         DebugOnly<nsresult> rv =
           ListInterfaceAddresses(fd, ifreq->ifr_name, aAddrMap);
         NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "ListInterfaceAddresses failed");
 
         ifreq = (struct ifreq*) ((char*)ifreq + len);
         i += len;
     }
 
-    autoCloseSocket.release();
     return NS_OK;
 }
 
 static nsresult
 ListInterfaceAddresses(int aFd, const char* aInterface, AddrMapType& aAddrMap)
 {
     struct ifreq ifreq;
     memset(&ifreq, 0, sizeof(struct ifreq));