projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
IPV6 support, plus cleanup around consistent hashing.
[awesomized/libmemcached]
/
lib
/
memcached_hosts.c
diff --git
a/lib/memcached_hosts.c
b/lib/memcached_hosts.c
index 3517d824698c4f359d9e188ff1734bc5e49614da..402018b4ae90cb58492776a5afed153c9c908b71 100644
(file)
--- a/
lib/memcached_hosts.c
+++ b/
lib/memcached_hosts.c
@@
-186,8
+186,14
@@
unsigned int memcached_server_list_count(memcached_server_st *ptr)
void memcached_server_list_free(memcached_server_st *ptr)
{
+ unsigned int x;
+
if (ptr == NULL)
return;
+ for (x= 0; x < ptr->count; x++)
+ if (ptr[x].address_info)
+ freeaddrinfo(ptr[x].address_info);
+
free(ptr);
}