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:
a88a699
)
Fix for test from Eric (we should rework this around the API)
author
Brian Aker
<brian@tangent.org>
Tue, 31 Mar 2009 03:30:03 +0000
(20:30 -0700)
committer
Brian Aker
<brian@tangent.org>
Tue, 31 Mar 2009 03:30:03 +0000
(20:30 -0700)
tests/function.c
patch
|
blob
|
history
diff --git
a/tests/function.c
b/tests/function.c
index 20637c8f08a2d54ddeae19b047d1e658bd9bffc6..4473000dc2d9e5526442957be6ed2490318fd622 100644
(file)
--- a/
tests/function.c
+++ b/
tests/function.c
@@
-3302,6
+3302,8
@@
static memcached_return init_udp(memcached_st *memc)
unsigned int x= 0;
memcached_server_st servers[num_hosts];
memcpy(servers, memc->hosts, sizeof(memcached_server_st) * num_hosts);
+ for (x= 0; x < num_hosts; x++)
+ memcached_server_free(&memc->hosts[x]);
memc->number_of_hosts= 0;
memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_USE_UDP, 1);
for (x= 0; x < num_hosts; x++)