From 219d13b7187319208fe538aff147797ca9757c29 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 7 Jun 2022 09:52:08 -0400 Subject: [PATCH] Fix #1303 --- httplib.h | 2 ++ 1 file changed, 2 insertions(+) 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) {