summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-03-06 17:13:38 +0000
committerAndi Gutmans <andi@php.net>2000-03-06 17:13:38 +0000
commit31c9ad183133a1d24a686b325414513a4373a680 (patch)
tree55467c51a5d6ec134dc8fd6c6e4064b9b3d44a1a
parentd7f21375d46fe8fd4672470314e2867d73f8dd2c (diff)
downloadphp-git-31c9ad183133a1d24a686b325414513a4373a680.tar.gz
- Fix memory leak
-rw-r--r--Zend/zend-scanner.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l
index 63ea2cc567..869fd30093 100644
--- a/Zend/zend-scanner.l
+++ b/Zend/zend-scanner.l
@@ -374,6 +374,8 @@ ZEND_API zend_op_array *v_compile_files(int mark_as_ref CLS_DC, int file_count,
retval_znode.op_type = IS_CONST;
retval_znode.u.constant.type = IS_LONG;
retval_znode.u.constant.value.lval = 1;
+ retval_znode.u.constant.is_ref = 0;
+ retval_znode.u.constant.refcount = 1;
do_return(&retval_znode, 0 CLS_CC);
CG(active_op_array) = original_active_op_array;
pass_two(op_array);