From: Toru Maesaka Date: Wed, 21 Jan 2009 06:46:05 +0000 (+0900) Subject: Delete useless code. X-Git-Tag: 0.26~13 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a5c71cf51ad345bee6f5890cc9bbad9f1d2444c9;p=m6w6%2Flibmemcached Delete useless code. --- diff --git a/libmemcached/memcached_stats.c b/libmemcached/memcached_stats.c index d489052c..9069bccb 100644 --- a/libmemcached/memcached_stats.c +++ b/libmemcached/memcached_stats.c @@ -348,11 +348,6 @@ memcached_stat_st *memcached_stat(memcached_st *ptr, char *args, memcached_retur if (!stats) { *error= MEMCACHED_MEMORY_ALLOCATION_FAILURE; - if (ptr->call_free) - ptr->call_free(ptr, stats); - else - free(stats); - return NULL; } memset(stats, 0, sizeof(memcached_stat_st)*(ptr->number_of_hosts));