From 1616df53c3691b05d9aedc9f2c638ac1c2ff78df Mon Sep 17 00:00:00 2001 From: Matt Knox Date: Tue, 30 Jun 2009 16:05:37 -0700 Subject: [PATCH] removed free --- 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 61edd122..6cb39df6 100644 --- a/libmemcached/memcached_response.c +++ b/libmemcached/memcached_response.c @@ -242,7 +242,7 @@ static memcached_return textual_read_one_response(memcached_server_st *ptr, /* SERVER_ERROR */ char *startptr= buffer + 13, *endptr= startptr; while (*endptr != '\r' && *endptr != '\n') endptr++; - if (ptr->cached_server_error) free(ptr->cached_server_error); + if (ptr->cached_server_error) ptr->root->call_free(ptr->root, ptr->cached_server_error); 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; -- 2.30.2