[php-src] PR #17132: Fix GH-17122: memory leak in regex
| From: | nielsdos | Date: | Thu, 12 Dec 2024 19:29:20 +0000 |
| Subject: | [php-src] PR #17132: Fix GH-17122: memory leak in regex | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29987@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17132
Author: nielsdos
Because the subpattern names are persistent, and the fact that the symbol table destruction is
skipped when using fast_shutdown, this means the refcounts will not be updated for the destruction
of the arrays that hold the subpattern name keys.
To solve this, detect this situation and duplicate the strings.