From a24b9c693dfa033071d74f762f88d9d58ff9ebb4 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sat, 7 Oct 2006 04:21:44 +0000 Subject: [PATCH] cacher: fix eleak in op_array non-shadow-copy (readonly_protection=on) git-svn-id: svn://svn.lighttpd.net/xcache/trunk@221 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- processor/processor.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/processor/processor.m4 b/processor/processor.m4 index af843fd..93b977b 100644 --- a/processor/processor.m4 +++ b/processor/processor.m4 @@ -545,6 +545,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{ STRUCT_P(zend_uint, refcount) UNFIXPOINTER(zend_uint, refcount) + IFSTORE(`dst->refcount[0] = 1;') pushdef(`AFTER_ALLOC', `IFCOPY(` processor->active_opcodes_dst = dst->opcodes;