mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting)
This commit is contained in:
parent
9269f58477
commit
c095e20ca8
6 changed files with 95 additions and 217 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue