cacher: fix sandbox destructor problem that cause memory leak, introduced by [166]
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@203 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
07ae7b3e37
commit
f46eb95b47
6
utils.c
6
utils.c
|
@ -389,10 +389,10 @@ xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) /
|
|||
|
||||
zend_hash_init_ex(TG(included_files), 5, NULL, NULL, 0, 1);
|
||||
#ifdef HAVE_XCACHE_CONSTANT
|
||||
zend_hash_init_ex(&TG(zend_constants), 20, NULL, EG(zend_constants)->pDestructor, 1, 0);
|
||||
zend_hash_init_ex(&TG(zend_constants), 20, NULL, OG(zend_constants)->pDestructor, 1, 0);
|
||||
#endif
|
||||
zend_hash_init_ex(&TG(function_table), 128, NULL, CG(function_table)->pDestructor, 0, 0);
|
||||
zend_hash_init_ex(&TG(class_table), 16, NULL, CG(class_table)->pDestructor, 0, 0);
|
||||
zend_hash_init_ex(&TG(function_table), 128, NULL, OG(function_table)->pDestructor, 0, 0);
|
||||
zend_hash_init_ex(&TG(class_table), 16, NULL, OG(class_table)->pDestructor, 0, 0);
|
||||
|
||||
sandbox->filename = filename;
|
||||
|
||||
|
|
Loading…
Reference in New Issue