From 4dfa3d9f1f719d86062cb01c19a49542f09249ec Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 30 Mar 2009 20:30:03 -0700 Subject: [PATCH] Fix for test from Eric (we should rework this around the API) --- tests/function.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/function.c b/tests/function.c index 20637c8f..4473000d 100644 --- 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++) -- 2.30.2