diff --git a/httplib.h b/httplib.h index fae94d9..eb73a57 100644 --- a/httplib.h +++ b/httplib.h @@ -4411,6 +4411,8 @@ inline void hosted_at(const char *hostname, std::vector &addrs) { addrs.push_back(ip); } } + + freeaddrinfo(result); } inline std::string append_query_params(const char *path, const Params ¶ms) {