Changeset 119 for trunk/xcache.c


Ignore:
Timestamp:
2006-09-01T01:45:54+02:00 (8 years ago)
Author:
moo
Message:

fix leak in xcache.test=1; XCACHE_VERSION/XCACHE_MODULES length off-by-one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r118 r119  
    939939    } 
    940940    if (xc_test && stored_xce) { 
     941        destroy_op_array(op_array TSRMLS_CC); 
     942        efree(op_array); 
    941943        goto restore; 
    942944    } 
     
    10651067    zend_register_long_constant(ZEND_STRS("XC_TYPE_PHP"), XC_TYPE_PHP, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
    10661068    zend_register_long_constant(ZEND_STRS("XC_TYPE_VAR"), XC_TYPE_VAR, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
    1067     zend_register_stringl_constant(ZEND_STRS("XCACHE_VERSION"), ZEND_STRS(XCACHE_VERSION), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
    1068     zend_register_stringl_constant(ZEND_STRS("XCACHE_MODULES"), ZEND_STRS(XCACHE_MODULES), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
     1069    zend_register_stringl_constant(ZEND_STRS("XCACHE_VERSION"), ZEND_STRL(XCACHE_VERSION), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
     1070    zend_register_stringl_constant(ZEND_STRS("XCACHE_MODULES"), ZEND_STRL(XCACHE_MODULES), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
    10691071    return 0; 
    10701072} 
Note: See TracChangeset for help on using the changeset viewer.