From: Brian Aker Date: Mon, 11 Jan 2010 03:19:32 +0000 (-0800) Subject: Style cleanup. X-Git-Tag: 0.37~8 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=178083badd2dcd43bdd6b01dd2eb062ac8e37303;p=m6w6%2Flibmemcached Style cleanup. --- diff --git a/libmemcached/memcached.c b/libmemcached/memcached.c index a6b38067..38468fb9 100644 --- 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)