diff options
author | dormando <dormando@rydia.net> | 2012-07-29 16:44:32 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2012-07-29 16:44:32 -0700 |
commit | 1d0978c57574120d9e34770f19e6261f9f2eadb8 (patch) | |
tree | a9685355a5a1857322599fdd88a7fff4e9b42cc5 | |
parent | 0abe886989914fe1d3866f1cfc31c9516114e67f (diff) | |
download | memcached-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...
-rw-r--r-- | cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |