[php-src] Issue #8367: Memory leak in Fiber when calling __construct()

From: Date: Thu, 14 Apr 2022 12:13:24 +0000
Subject: [php-src] Issue #8367: Memory leak in Fiber when calling __construct()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240965@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8367 Comment Author: cmb69 Apparently the issue is: https://github.com/php/php-src/blob/ec0771c03fb90674f677e3c11a19d2d4cc4080cb/Zend/zend_fibers.c#L653-L654 If fiber->fci is changed, the old fiber->fci.function_name would need to be deref'ed. Regarding the leak checking in general: if you run with valgrind, always set USE_ZEND_ALLOC=0; otherwise valgrind will not detect any leaks, and the leak detection by the ZendMM isn't that helpful in finding where the leak occurred.

« previous php.bugs (#240965) next »