git.samba.org
/
gd
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smbd: Use leases_db in lease_match()
[gd/samba-autobuild/.git]
/
lib
/
replace
/
getaddrinfo.c
diff --git
a/lib/replace/getaddrinfo.c
b/lib/replace/getaddrinfo.c
index c5cd52be93c83b290c0c2724daaddfb77d9ddef6..8440d8e6f3e9d50e292a40b4e69931505ac1b905 100644
(file)
--- a/
lib/replace/getaddrinfo.c
+++ b/
lib/replace/getaddrinfo.c
@@
-321,12
+321,8
@@
void rep_freeaddrinfo(struct addrinfo *res)
for (;res; res = next) {
next = res->ai_next;
- if (res->ai_canonname) {
- free(res->ai_canonname);
- }
- if (res->ai_addr) {
- free(res->ai_addr);
- }
+ free(res->ai_canonname);
+ free(res->ai_addr);
free(res);
}
}