Changeset f4b67d7 in git


Ignore:
Timestamp:
2006-10-07T01:55:45Z (14 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
3365e39
Parents:
7e476dc
Message:

processor: reset refcount to 0 to kill leak warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@217 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Location:
processor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • processor/head.m4

    rd519ff2 rf4b67d7  
    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;
  • processor/processor.m4

    rc9591db rf4b67d7  
    295295
    296296    STRUCT(HashTable, default_properties, HashTable_zval_ptr)
     297    IFSTORE(`xc_hash_reset_zval_refcount(&dst->default_properties TSRMLS_CC);')
    297298    IFCOPY(`dst->builtin_functions = src->builtin_functions;')
    298299    DONE(builtin_functions)
     
    308309#   endif
    309310    STRUCT(HashTable, constants_table, HashTable_zval_ptr)
     311    IFSTORE(`xc_hash_reset_zval_refcount(&dst->constants_table TSRMLS_CC);')
    310312
    311313    dnl runtime binding: ADD_INTERFACE will deal with it
Note: See TracChangeset for help on using the changeset viewer.