Changeset 7b282cc in git


Ignore:
Timestamp:
2014-05-30T14:58:42Z (6 years ago)
Author:
Xuefer <xuefer@…>
Branches:
master, trunk
Children:
ffdf756
Parents:
f5e6898
Message:

disassembler: fix leak for constant

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • processor/processor.m4

    r24b06d4 r7b282cc  
    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.