From c9e233fb73b8e10c8a179502dcc770cf5d179e0b Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 5 Aug 2007 02:38:31 +0000 Subject: [PATCH] merged r465 from b1.2: fixed #102, Segmentation fault with xcache.var_size=1K git-svn-id: svn://svn.lighttpd.net/xcache/trunk@467 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- xcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcache.c b/xcache.c index 4201c0c..473933b 100644 --- a/xcache.c +++ b/xcache.c @@ -1650,11 +1650,12 @@ static int xc_init(int module_number TSRMLS_DC) /* {{{ */ return SUCCESS; err: - xc_destroy(); if (xc_php_caches || xc_var_caches) { + xc_destroy(); /* shm destroied in xc_destroy() */ } else if (shm) { + xc_destroy(); xc_shm_destroy(shm); } return 0;