Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting)

This commit is contained in:
Dmitry Stogov 2005-10-20 07:23:26 +00:00
parent 9269f58477
commit c095e20ca8
6 changed files with 95 additions and 217 deletions

View file

@ -84,7 +84,14 @@ static inline void zend_ptr_stack_3_pop(zend_ptr_stack *stack, void **a, void **
*a = *(--stack->top_element);
*b = *(--stack->top_element);
*c = *(--stack->top_element);
stack->top -= 3;;
stack->top -= 3;
}
static inline void zend_ptr_stack_2_pop(zend_ptr_stack *stack, void **a, void **b)
{
*a = *(--stack->top_element);
*b = *(--stack->top_element);
stack->top -= 2;
}
static inline void zend_ptr_stack_push(zend_ptr_stack *stack, void *ptr)