Delete useless code.
authorToru Maesaka <dev@torum.net>
Wed, 21 Jan 2009 06:46:05 +0000 (15:46 +0900)
committerToru Maesaka <dev@torum.net>
Wed, 21 Jan 2009 06:46:05 +0000 (15:46 +0900)
libmemcached/memcached_stats.c

index d489052c6ecd5f2e551569bf5c672ab43d8172f3..9069bccbed6e0a74bb2cae1977b420b4e8fd10ab 100644 (file)
@@ -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));