History log of /PHP-8.4/ext/pcre/tests/gh17122.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# dc27acdd 12-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17122: memory leak in regex

Because the subpattern names are persistent, and the fact that the
symbol table destruction is skipped when using fast_shutdown,
this means the ref

Fix GH-17122: memory leak in regex

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.

Closes GH-17132.

show more ...