Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r704 r705 15 15 * compatibility fix: fix segv on shutdown when ionCube Loader is loaded 16 16 * fixed undefined index for xcache.count=1 and xcache.var_size>1 17 * fix builtin constant memory leak on compile 17 18 18 19 1.3.1 2010-11-27 -
trunk/utils.c
r682 r705 649 649 } 650 650 /* }}} */ 651 void xc_free_zend_constant(zend_constant *c) /* {{{ */651 static void xc_free_zend_constant(zend_constant *c) /* {{{ */ 652 652 { 653 653 if (!(c->flags & CONST_PERSISTENT)) { … … 702 702 zend_hash_init_ex(&TG(zend_constants), 20, NULL, (dtor_func_t) xc_free_zend_constant, h->persistent, h->bApplyProtection); 703 703 xc_copy_internal_zend_constants(&TG(zend_constants), &XG(internal_constant_table)); 704 {705 zend_constant tmp_const;706 zend_hash_copy(&TG(zend_constants), &XG(internal_constant_table), (copy_ctor_func_t) xc_zend_constant_ctor, (void *) &tmp_const, sizeof(tmp_const));707 }708 704 TG(internal_constant_tail) = TG(zend_constants).pListTail; 709 705 #endif … … 775 771 776 772 #ifdef HAVE_XCACHE_CONSTANT 773 for (b = TG(zend_constants).pListHead; b != NULL && b != TG(internal_constant_tail); b = b->pListNext) { 774 zend_constant *c = (zend_constant*) b->pData; 775 xc_free_zend_constant(c); 776 } 777 777 778 b = TG(internal_constant_tail) ? TG(internal_constant_tail)->pListNext : TG(zend_constants).pListHead; 778 779 /* install constants */
Note: See TracChangeset
for help on using the changeset viewer.