summaryrefslogtreecommitdiff
path: root/xcache
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-05-30 13:09:38 +0000
committerXuefer <xuefer@gmail.com>2014-05-30 13:09:38 +0000
commitcaf19fe783f8c15c22bbe93be4fb101e6f8abf3a (patch)
tree3413e92d33e1078d9a6e12c413a935f44ff7216b /xcache
parent9a7a9f8fd23a69c2b41f856618c603fbc4893951 (diff)
downloadxcache-caf19fe783f8c15c22bbe93be4fb101e6f8abf3a.tar.gz
xcache-caf19fe783f8c15c22bbe93be4fb101e6f8abf3a.zip
decompiler: fix leak
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1493 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'xcache')
-rw-r--r--xcache/xc_compatibility.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xcache/xc_compatibility.h b/xcache/xc_compatibility.h
index 9fad4db..1d01656 100644
--- a/xcache/xc_compatibility.h
+++ b/xcache/xc_compatibility.h
@@ -219,6 +219,13 @@ typedef const zstr const_zstr;
#endif
/* }}} */
+#ifndef MAKE_COPY_ZVAL
+# define MAKE_COPY_ZVAL(ppzv, pzv) \
+ *(pzv) = **(ppzv); \
+ zval_copy_ctor((pzv)); \
+ INIT_PZVAL((pzv));
+#endif
+
/* the class entry type to be stored in class_table */
typedef ZESW(zend_class_entry, zend_class_entry*) xc_cest_t;