summaryrefslogtreecommitdiff
path: root/libmemcached/stats.cc
diff options
context:
space:
mode:
authorBrian Aker <brian@tangent.org>2011-11-30 08:41:29 -0800
committerBrian Aker <brian@tangent.org>2011-11-30 08:41:29 -0800
commitf5838944c3424afa14765d709a127c943f1cf87b (patch)
tree9e78000af65d9e0291dd8671140b979fc1cfb285 /libmemcached/stats.cc
parentf34725871a4ad46ea3b3194d829eebf81cc5c08e (diff)
downloadlibmemcached-f5838944c3424afa14765d709a127c943f1cf87b.tar.gz
Fix usage for using the macro for realloc.
Diffstat (limited to 'libmemcached/stats.cc')
-rw-r--r--libmemcached/stats.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmemcached/stats.cc b/libmemcached/stats.cc
index 78fed03d..239c789d 100644
--- a/libmemcached/stats.cc
+++ b/libmemcached/stats.cc
@@ -486,7 +486,7 @@ memcached_stat_st *memcached_stat(memcached_st *self, char *args, memcached_retu
return NULL;
}
- memcached_stat_st *stats= static_cast<memcached_stat_st *>(libmemcached_calloc(self, memcached_server_count(self), sizeof(memcached_stat_st)));
+ memcached_stat_st *stats= libmemcached_xcalloc(self, memcached_server_count(self), memcached_stat_st);
if (not stats)
{