summaryrefslogtreecommitdiff
path: root/zend/parametersimpl.h
diff options
context:
space:
mode:
authorToon Schoenmakers <toon.schoenmakers@copernica.com>2014-12-22 15:45:06 +0100
committerToon Schoenmakers <toon.schoenmakers@copernica.com>2014-12-22 15:45:06 +0100
commit38135ce4ab49c06799df08cfff4bc8d6f67e5fc7 (patch)
treea7bcacaff7fabb576eda21d507a638124e61ca58 /zend/parametersimpl.h
parentff9a22782a7d28b11af0ff2d3948a196ab12d003 (diff)
Corrected an incorrect refcount when cloning a Php::Value, this should fix the memory leak in issue #153
Diffstat (limited to 'zend/parametersimpl.h')
-rw-r--r--zend/parametersimpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zend/parametersimpl.h b/zend/parametersimpl.h
index fd14238..2841c75 100644
--- a/zend/parametersimpl.h
+++ b/zend/parametersimpl.h
@@ -36,7 +36,7 @@ public:
zval **arg = (zval **) (zend_vm_stack_top(TSRMLS_C) - 1 - (argc-i));
// append value
- push_back(Value(*arg));
+ emplace_back(*arg);
}
}