[php-src] PR #21298: ext/pcre: fix memory leaks on error paths
| From: | devnexen | Date: | Wed, 25 Feb 2026 20:34:47 +0000 |
| Subject: | [php-src] PR #21298: ext/pcre: fix memory leaks on error paths | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35027@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21298
Author: devnexen
Fix pcre2_code leak when pcre2_pattern_info() fails after a successful pcre2_compile(), and fix
match_sets/match_data/marks leak when offsets[1] < offsets[0] in php_pcre_match_impl().