Changeset 1496 in svn for trunk


Ignore:
Timestamp:
2014-05-30T16:58:42+02:00 (13 months ago)
Author:
Xuefer
Message:

disassembler: fix leak for constant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/processor.m4

    r1491 r1496  
    604604                IFDASM(`{
    605605                    zval *zv;
    606                     ALLOC_INIT_ZVAL(zv);
    607                     *zv = dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
    608                     zval_copy_ctor(zv);
     606                    zval *srczv = &dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
     607                    ALLOC_ZVAL(zv);
     608                    MAKE_COPY_ZVAL(&srczv, zv);
    609609                    add_assoc_zval_ex(DST(), XCACHE_STRS("$1.constant"), zv);
    610610                }
Note: See TracChangeset for help on using the changeset viewer.