From: Brian Aker Date: Tue, 31 Mar 2009 03:30:03 +0000 (-0700) Subject: Fix for test from Eric (we should rework this around the API) X-Git-Tag: 0.28~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4dfa3d9f1f719d86062cb01c19a49542f09249ec;p=awesomized%2Flibmemcached Fix for test from Eric (we should rework this around the API) --- 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++)