diff options
author | Brian Aker <brian@tangent.org> | 2011-06-14 04:41:17 -0700 |
---|---|---|
committer | Brian Aker <brian@tangent.org> | 2011-06-14 04:41:17 -0700 |
commit | 805884743f76a5c4dad8ad20e6033630a92e71df (patch) | |
tree | d3cae0ad27b5540cec9371b2d052cf006358fe91 /libmemcached/stats.cc | |
parent | 1269230d28c43a67a51b74a5b42fd906be6a172a (diff) | |
download | libmemcached-805884743f76a5c4dad8ad20e6033630a92e71df.tar.gz |
Merge in fix for additional logic for timeouts.
Diffstat (limited to 'libmemcached/stats.cc')
-rw-r--r-- | libmemcached/stats.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libmemcached/stats.cc b/libmemcached/stats.cc index d5d34a84..5a2013e8 100644 --- a/libmemcached/stats.cc +++ b/libmemcached/stats.cc @@ -577,14 +577,11 @@ char ** memcached_stat_get_keys(memcached_st *ptr, return list; } -void memcached_stat_free(const memcached_st *ptr, memcached_stat_st *memc_stat) +void memcached_stat_free(const memcached_st *, memcached_stat_st *memc_stat) { - if (not ptr) - return; - + WATCHPOINT_ASSERT(memc_stat); // Be polite, but when debugging catch this as an error if (not memc_stat) { - WATCHPOINT_ASSERT(0); /* Be polite, but when debugging catch this as an error */ return; } @@ -594,7 +591,7 @@ void memcached_stat_free(const memcached_st *ptr, memcached_stat_st *memc_stat) return; } - libmemcached_free(ptr, memc_stat); + libmemcached_free(NULL, memc_stat); } static memcached_return_t call_stat_fn(memcached_st *ptr, |