Explorar el Código

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 hace 3 años
padre
commit
cbe0ddc28c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      common/network/TcpSocket.cxx

+ 2
- 0
common/network/TcpSocket.cxx Ver fichero

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

freeaddrinfo(ai);
}

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

Cargando…
Cancelar
Guardar