summaryrefslogtreecommitdiff
path: root/Zend/zend_stack.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2010-08-27 06:09:18 +0000
committerDmitry Stogov <dmitry@php.net>2010-08-27 06:09:18 +0000
commitcaffc1c9726e14a49d20678df454d1326b0962a0 (patch)
treeb581ff6aced21222384b312c63f39f6ae9897968 /Zend/zend_stack.c
parentf33837ff9714105ee11cdedeefd23e674c0043e6 (diff)
downloadphp-git-caffc1c9726e14a49d20678df454d1326b0962a0.tar.gz
Preallocate zend_hash instead of allocation/deallocation it on each request
Diffstat (limited to 'Zend/zend_stack.c')
-rw-r--r--Zend/zend_stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_stack.c b/Zend/zend_stack.c
index 1c6b066507..9832d503e6 100644
--- a/Zend/zend_stack.c
+++ b/Zend/zend_stack.c
@@ -96,8 +96,8 @@ ZEND_API int zend_stack_destroy(zend_stack *stack)
for (i = 0; i < stack->top; i++) {
efree(stack->elements[i]);
}
-
efree(stack->elements);
+ stack->elements = NULL;
}
return SUCCESS;