/* LibMemcached
- * Copyright (C) 2006-2009 Brian Aker
+ * Copyright (C) 2006-2009 Brian Aker
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
{
if (ptr == NULL)
{
- ptr= (memcached_server_st *)calloc(1, sizeof(memcached_server_st));
+ ptr= (memcached_server_st *)memc->call_calloc(memc, 1, sizeof(memcached_server_st));
if (!ptr)
return NULL; /* MEMCACHED_MEMORY_ALLOCATION_FAILURE */
if (ptr == NULL)
return NULL;
- rv = memcached_server_create_with(ptr->root, clone,
- ptr->hostname, ptr->port, ptr->weight,
- ptr->type);
+ rv= memcached_server_create_with(ptr->root, clone,
+ ptr->hostname, ptr->port, ptr->weight,
+ ptr->type);
if (rv != NULL)
{
rv->cached_errno= ptr->cached_errno;