From dbea26e9e903c9bb58253079c9f721c76663e49e Mon Sep 17 00:00:00 2001 From: Matt Knox Date: Tue, 30 Jun 2009 15:15:14 -0700 Subject: [PATCH] oops! Now I'm using the malloc api, rather than direct malloc --- libmemcached/memcached_response.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmemcached/memcached_response.c b/libmemcached/memcached_response.c index e1720f0a..61edd122 100644 --- a/libmemcached/memcached_response.c +++ b/libmemcached/memcached_response.c @@ -243,7 +243,7 @@ static memcached_return textual_read_one_response(memcached_server_st *ptr, char *startptr= buffer + 13, *endptr= startptr; while (*endptr != '\r' && *endptr != '\n') endptr++; if (ptr->cached_server_error) free(ptr->cached_server_error); - ptr->cached_server_error= malloc(endptr - startptr + 1); + ptr->cached_server_error= ptr->root->call_malloc(ptr->root, endptr - startptr + 1); memcpy(ptr->cached_server_error, startptr, endptr - startptr); ptr->cached_server_error[endptr - startptr]= 0; return MEMCACHED_SERVER_ERROR; -- 2.30.2