From 508deb9804997ba6f56376311b92ae3e3de1e571 Mon Sep 17 00:00:00 2001 From: qiankunzheng Date: Wed, 23 Dec 2015 17:29:26 -0500 Subject: [PATCH] common/address_help.cc: fix the leak in entity_addr_from_url() Fixes: #14132 Signed-off-by: Qiankun Zheng --- src/common/address_helper.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/address_helper.cc b/src/common/address_helper.cc index 1bde1accd779..35cb0f2b5d46 100644 --- a/src/common/address_helper.cc +++ b/src/common/address_helper.cc @@ -59,6 +59,7 @@ int entity_addr_from_url(entity_addr_t *addr /* out */, const char *url) break; }; addr->set_port(std::atoi(port.c_str())); + freeaddrinfo(res); return 0; } } -- 2.47.3