mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user