[php-src] PR #12549: Fix memory leak in error path of zend_register_list_destructors_ex
| From: | nielsdos | Date: | Sun, 29 Oct 2023 13:04:00 +0000 |
| Subject: | [php-src] PR #12549: Fix memory leak in error path of zend_register_list_destructors_ex | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24036@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12549
Author: nielsdos
I don't know if this error condition is ever _actually_ hit, most callers of this function
don't actually care about the return value despite the check on
zend_hash_next_index_insert. Anyway, for precaution, frees the memory allocated by this
function if it fails.