~singpolyma/biboumi

6a7cd5eecfa4df0552969e5d5d57452d290b7fc5 — Florent Le Coz 8 years ago 05a82b8
Do not forget to call freeaddrinfo, fix a memleak

For the getaddrinfo call we added in the previous commit, to convert the IP
provided in the conf.
1 files changed, 1 insertions(+), 0 deletions(-)

M louloulibs/network/tcp_socket_handler.cpp
M louloulibs/network/tcp_socket_handler.cpp => louloulibs/network/tcp_socket_handler.cpp +1 -0
@@ 68,6 68,7 @@ void TCPSocketHandler::init_socket(const struct addrinfo* rp)
                  << gai_strerror(err));
      else
        {
          utils::ScopeGuard sg([result](){ freeaddrinfo(result); });
          struct addrinfo* rp;
          int bind_error;
          for (rp = result; rp; rp = rp->ai_next)