From: Matt Knox Date: Tue, 30 Jun 2009 23:05:37 +0000 (-0700) Subject: removed free X-Git-Tag: 0.32~16^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1616df53c3691b05d9aedc9f2c638ac1c2ff78df;p=m6w6%2Flibmemcached removed free --- 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;