Skip to content
Browse files

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...
  • Loading branch information...
1 parent 0abe886 commit 1d0978c57574120d9e34770f19e6261f9f2eadb8 @dormando dormando committed Jul 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 cache.c
View
1 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) {

0 comments on commit 1d0978c

Please sign in to comment.
Something went wrong with that request. Please try again.