From: Matt Knox Date: Tue, 30 Jun 2009 22:15:14 +0000 (-0700) Subject: oops! Now I'm using the malloc api, rather than direct malloc X-Git-Tag: 0.32~16^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=dbea26e9e903c9bb58253079c9f721c76663e49e;p=m6w6%2Flibmemcached oops! Now I'm using the malloc api, rather than direct malloc --- 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;