summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/dnsproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dnsproxy.c b/src/dnsproxy.c
index 6e1870f..f047c05 100755
--- a/src/dnsproxy.c
+++ b/src/dnsproxy.c
@@ -2698,6 +2698,7 @@ static struct server_data *create_server_sec(int index,
if (ret) {
connman_error("Failed to parse server %s address: %s\n",
data->server, gai_strerror(ret));
+ freeaddrinfo(rp);
destroy_server_sec(data);
return NULL;
}