summaryrefslogtreecommitdiff
path: root/cache.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2012-07-29 16:44:32 -0700
committerdormando <dormando@rydia.net>2012-07-29 16:44:32 -0700
commit1d0978c57574120d9e34770f19e6261f9f2eadb8 (patch)
treea9685355a5a1857322599fdd88a7fff4e9b42cc5 /cache.c
parent0abe886989914fe1d3866f1cfc31c9516114e67f (diff)
downloadmemcached-1d0978c57574120d9e34770f19e6261f9f2eadb8.tar.gz
totally destroy test caches
someone pointed out that cache_destroy wasn't freeing the cache_t pointer. memcached itself never destroys a cache it creates, so this is fine, but it's fixed for completeness...
Diffstat (limited to 'cache.c')
-rw-r--r--cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.c b/cache.c
index e095962..07a2ae0 100644
--- a/cache.c
+++ b/cache.c
@@ -65,6 +65,7 @@ void cache_destroy(cache_t *cache) {
free(cache->name);
free(cache->ptr);
pthread_mutex_destroy(&cache->mutex);
+ free(cache);
}
void* cache_alloc(cache_t *cache) {