From c095e20ca8cc8fbe4d165f6411bb2235cf5f8dfc Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 20 Oct 2005 07:23:26 +0000 Subject: Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting) --- Zend/zend_ptr_stack.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Zend/zend_ptr_stack.h') diff --git a/Zend/zend_ptr_stack.h b/Zend/zend_ptr_stack.h index 1943603633..4e13f52374 100644 --- a/Zend/zend_ptr_stack.h +++ b/Zend/zend_ptr_stack.h @@ -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) -- cgit v1.2.1