projects
/
dnsmasq.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db9943
)
Call freeaddrinfo() in domain_rev[46]()
author
Simon Kelley
<simon@thekelleys.org.uk>
Mon, 7 Nov 2022 22:01:28 +0000
(22:01 +0000)
committer
Simon Kelley
<simon@thekelleys.org.uk>
Mon, 7 Nov 2022 22:01:28 +0000
(22:01 +0000)
src/option.c
patch
|
blob
|
history
diff --git
a/src/option.c
b/src/option.c
index
85bc876
..
ab36050
100644
(file)
--- a/
src/option.c
+++ b/
src/option.c
@@
-1157,6
+1157,9
@@
static char *domain_rev4(int from_file, char *server, struct in_addr *addr4, int
if (!add_update_server(flags, &serv_addr, &source_addr, interface, domain, NULL))
return _("error");
}
+
+ if (sdetails.resolved)
+ freeaddrinfo(sdetails.hostinfo);
}
}
@@
-1237,6
+1240,9
@@
static char *domain_rev6(int from_file, char *server, struct in6_addr *addr6, in
if (!add_update_server(flags, &serv_addr, &source_addr, interface, domain, NULL))
return _("error");
}
+
+ if (sdetails.resolved)
+ freeaddrinfo(sdetails.hostinfo);
}
}