Browse Source

Free memory from getaddrinfo()

We handled this in the failure scenario, but not in the vastly more
common successful case.
tags/v1.10.90
Pierre Ossman 3 years ago
parent
commit
cbe0ddc28c
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      common/network/TcpSocket.cxx

+ 2
- 0
common/network/TcpSocket.cxx View File

@@ -459,6 +459,8 @@ void network::createTcpListeners(std::list<SocketListener*> *listeners,
freeaddrinfo(ai);
throw;
}

freeaddrinfo(ai);
}

void network::createTcpListeners(std::list<SocketListener*> *listeners,

Loading…
Cancel
Save