Browse Source

disassembler: fix leak for constant

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1496 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 7 years ago
parent
commit
7b282cc097
  1. 6
      processor/processor.m4

6
processor/processor.m4

@ -603,9 +603,9 @@ define(`UNION_znode_op', `dnl {{{
', `
IFDASM(`{
zval *zv;
ALLOC_INIT_ZVAL(zv);
*zv = dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
zval_copy_ctor(zv);
zval *srczv = &dasm->active_op_array_src->literals[SRC(`$1.constant')].constant;
ALLOC_ZVAL(zv);
MAKE_COPY_ZVAL(&srczv, zv);
add_assoc_zval_ex(DST(), XCACHE_STRS("$1.constant"), zv);
}
', `

Loading…
Cancel
Save