mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- Fixed memory leak with this pointer. It was somtimes initialized with refcount
of 2 instead of 1. - Also fixed a place where object.ptr_ptr is set to pointing to a zval* instead of zval**. I don't think this is ever used so we might be able to remove it altogether.
This commit is contained in:
parent
8959144837
commit
e3d0c91dbb
1 changed files with 2 additions and 2 deletions
|
@ -1492,9 +1492,9 @@ do_fcall_common:
|
|||
*tmp = *object.ptr;
|
||||
zendi_zval_copy_ctor(*tmp);
|
||||
object.ptr = tmp;
|
||||
*object.ptr_ptr = tmp;
|
||||
object.ptr_ptr = &tmp;
|
||||
}
|
||||
object.ptr->refcount = 1;
|
||||
object.ptr->refcount = 0;
|
||||
object.ptr->is_ref = 1;
|
||||
}
|
||||
*this_ptr = object.ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue