Browse Source

fixs crash when cache is too small on start up

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1194 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
f6aa3a6474
  1. 4
      mod_cacher/xc_cacher.c

4
mod_cacher/xc_cacher.c

@ -2610,7 +2610,9 @@ static xc_shm_t *xc_cache_destroy(xc_cache_t *caches, xc_hash_t *hcache) /* {{{
}
/* do NOT touch cached data */
shm = cache->shm;
cache->shm->handlers->memdestroy(cache->allocator);
if (shm) {
cache->shm->handlers->memdestroy(cache->allocator);
}
}
}
free(caches);

Loading…
Cancel
Save