diff options
Diffstat (limited to 'louloulibs/network/tcp_socket_handler.cpp')
-rw-r--r-- | louloulibs/network/tcp_socket_handler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/louloulibs/network/tcp_socket_handler.cpp b/louloulibs/network/tcp_socket_handler.cpp index 83863b0..6ed981c 100644 --- a/louloulibs/network/tcp_socket_handler.cpp +++ b/louloulibs/network/tcp_socket_handler.cpp @@ -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) |