projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
7cbb743
)
Style cleanup.
author
Brian Aker
<brian@gaz>
Mon, 11 Jan 2010 03:19:32 +0000
(19:19 -0800)
committer
Brian Aker
<brian@gaz>
Mon, 11 Jan 2010 03:19:32 +0000
(19:19 -0800)
libmemcached/memcached.c
patch
|
blob
|
history
diff --git
a/libmemcached/memcached.c
b/libmemcached/memcached.c
index a6b38067642fd36113329b96394bfeed862eaeea..38468fb9a6a5a83648a654ef3ad7ac428b6ed638 100644
(file)
--- a/
libmemcached/memcached.c
+++ b/
libmemcached/memcached.c
@@
-52,18
+52,22
@@
void server_list_free(memcached_st *ptr, memcached_server_st *servers)
return;
for (x= 0; x < memcached_servers_count(servers); x++)
+ {
if (servers[x].address_info)
{
freeaddrinfo(servers[x].address_info);
servers[x].address_info= NULL;
}
+ }
if (ptr)
{
ptr->call_free(ptr, servers);
}
else
+ {
free(servers);
+ }
}
void memcached_servers_reset(memcached_st *ptr)