mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1925667: don't leak AF_ROUTE sockets on mac r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D226367
This commit is contained in:
parent
e863dbf8e4
commit
126bfbf7f4
@ -427,6 +427,7 @@ bool nsNetworkLinkService::RoutingFromKernel(nsTArray<nsCString>& aHash) {
|
||||
LOG(("RoutingFromKernel: Can create a socket for network id"));
|
||||
return false;
|
||||
}
|
||||
auto sockfd_guard = mozilla::MakeScopeExit([sockfd] { close(sockfd); });
|
||||
|
||||
MOZ_ASSERT(!NS_IsMainThread());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user