[php-src] PR #21747: ext/session: fix missing zval_ptr_dtor for retval in PS_GC_FUNC(user)
| From: | jorgsowa | Date: | Tue, 14 Apr 2026 06:39:11 +0000 |
| Subject: | [php-src] PR #21747: ext/session: fix missing zval_ptr_dtor for retval in PS_GC_FUNC(user) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35708@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21747
Author: jorgsowa
PS_GC_FUNC(user) did not call zval_ptr_dtor() on the return value of the user GC callback, leaking
memory when the callback returned a reference-counted value. All other user handlers (write,
destroy, validate_sid, update_timestamp) already free retval correctly.