diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 10:01:49 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-10 10:01:49 +0200 |
commit | ce5e5b0aa360b001778ff3c8ae21822002fa2c53 (patch) | |
tree | 3fb5384ca4fe21322a5e0824db3361a6573294bf /ext/imap/php_imap.c | |
parent | e2ea0f105c9c6c60b19f2584d72205e5b1fe11e8 (diff) | |
download | php-git-ce5e5b0aa360b001778ff3c8ae21822002fa2c53.tar.gz |
Use release for regex in imap
The regex may be used as a cache key now.
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index ca002e7fcd..3cee4e023e 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1351,11 +1351,11 @@ PHP_FUNCTION(imap_append) /* Make sure the given internal_date string matches the RFC specifiedformat */ if ((pce = pcre_get_compiled_regex_cache(regex))== NULL) { - zend_string_free(regex); + zend_string_release(regex); RETURN_FALSE; } - zend_string_free(regex); + zend_string_release(regex); php_pcre_match_impl(pce, internal_date, return_value, subpats, global, 0, Z_L(0), Z_L(0)); |