void memcached_deinit(memcached_st *ptr)
{
unsigned int x;
- memcached_host_st *host_ptr;
if (ptr->hosts)
{
if (ptr->hosts[x].fd > 0)
close(ptr->hosts[x].fd);
- if (ptr->hosts[x].hostname)
- free(ptr->hosts[x].hostname);
+ free(ptr->hosts[x].hostname);
}
free(ptr->hosts);