Ignore:
Timestamp:
2006-10-07T03:55:45+02:00 (8 years ago)
Author:
moo
Message:

processor: reset refcount to 0 to kill leak warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r200 r217  
    278278/* }}} */ 
    279279#endif 
     280int xc_hash_reset_zval_refcount_applyer(void *pDest TSRMLS_DC) /* {{{ */ 
     281{ 
     282    zval **zv = (zval **) pDest; 
     283    ZVAL_REFCOUNT(*zv) = 1; 
     284    return ZEND_HASH_APPLY_KEEP; 
     285} 
     286/* }}} */ 
     287static void xc_hash_reset_zval_refcount(HashTable *hash TSRMLS_DC) /* {{{ */ 
     288{ 
     289    zend_hash_apply(hash, xc_hash_reset_zval_refcount_applyer TSRMLS_CC); 
     290} 
     291/* }}} */ 
    280292/* {{{ call op_array ctor handler */ 
    281293extern zend_bool xc_have_op_array_ctor; 
Note: See TracChangeset for help on using the changeset viewer.