mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
efree match_sets on an error here - found by Coverity
This commit is contained in:
parent
dc1e148165
commit
c9342c81d6
@ -644,6 +644,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subjec
|
||||
if (pcre_get_substring_list(subject, offsets, count, &stringlist) < 0) {
|
||||
efree(subpat_names);
|
||||
efree(offsets);
|
||||
if (match_sets) efree(match_sets);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Get subpatterns list failed");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user