Changeset f46eb95 in git


Ignore:
Timestamp:
2006-10-01T08:50:14Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
5230b60
Parents:
07ae7b3
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils.c

    rd519ff2 rf46eb95  
    390390    zend_hash_init_ex(TG(included_files), 5, NULL, NULL, 0, 1);
    391391#ifdef HAVE_XCACHE_CONSTANT
    392     zend_hash_init_ex(&TG(zend_constants), 20, NULL, EG(zend_constants)->pDestructor, 1, 0);
    393 #endif
    394     zend_hash_init_ex(&TG(function_table), 128, NULL, CG(function_table)->pDestructor, 0, 0);
    395     zend_hash_init_ex(&TG(class_table), 16, NULL, CG(class_table)->pDestructor, 0, 0);
     392    zend_hash_init_ex(&TG(zend_constants), 20, NULL, OG(zend_constants)->pDestructor, 1, 0);
     393#endif
     394    zend_hash_init_ex(&TG(function_table), 128, NULL, OG(function_table)->pDestructor, 0, 0);
     395    zend_hash_init_ex(&TG(class_table), 16, NULL, OG(class_table)->pDestructor, 0, 0);
    396396
    397397    sandbox->filename = filename;
Note: See TracChangeset for help on using the changeset viewer.