summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-25 10:26:20 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-25 10:26:20 +0200
commitd2a1fe846265a94a7c73d9e3972daf9175041d90 (patch)
tree61ef9b0d92df98515d174dd7415d35a164624774 /ext/mbstring/php_mbregex.c
parente18c60cd8dfed02311ebb3d11e3543d9a99c7c2a (diff)
parent43dd1ac5709d92b2a96374e9bbe9de2f0c1cbf63 (diff)
downloadphp-git-d2a1fe846265a94a7c73d9e3972daf9175041d90.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index 4206a0a9f8..1233da5513 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -1124,7 +1124,7 @@ static void _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, OnigOp
if (zend_eval_stringl(ZSTR_VAL(eval_str), ZSTR_LEN(eval_str), &v, description) == FAILURE) {
efree(description);
zend_throw_error(NULL, "Failed evaluating code: %s%s", PHP_EOL, ZSTR_VAL(eval_str));
- onig_region_free(regs, 0);
+ onig_region_free(regs, 1);
smart_str_free(&out_buf);
smart_str_free(&eval_buf);
RETURN_FALSE;