summaryrefslogtreecommitdiff
path: root/processor
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-05-30 14:58:42 +0000
committerXuefer <xuefer@gmail.com>2014-05-30 14:58:42 +0000
commit7b282cc097b20f267dfa772cfaa003198917aac0 (patch)
treeba10ea86208d600065488c92ae7adc050ff98617 /processor
parentf5e6898b1be2e9759e3284933b3885d65c553be3 (diff)
downloadxcache-7b282cc097b20f267dfa772cfaa003198917aac0.tar.gz
xcache-7b282cc097b20f267dfa772cfaa003198917aac0.zip
disassembler: fix leak for constant
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1496 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor')
-rw-r--r--processor/processor.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/processor/processor.m4 b/processor/processor.m4
index 350dcea..b4e0acc 100644
--- a/processor/processor.m4
+++ b/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);
}
', `