summaryrefslogtreecommitdiff
path: root/ext/standard/browscap.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2017-01-03 02:13:04 +0100
committerNikita Popov <nikic@php.net>2017-01-03 02:13:04 +0100
commita08747bb4c43bb6c1be77e65a98b8bd7fb3a3fe9 (patch)
tree731241bf2651199fcbf269d934340eadf99d9cee /ext/standard/browscap.c
parent26c944a8553ee8e7963a26f637062838125cf2e7 (diff)
parente1e5caf9d42e8ff28a18b1369810415e3fef162c (diff)
downloadphp-git-a08747bb4c43bb6c1be77e65a98b8bd7fb3a3fe9.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'ext/standard/browscap.c')
-rw-r--r--ext/standard/browscap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c
index c913cc8c97..273980529e 100644
--- a/ext/standard/browscap.c
+++ b/ext/standard/browscap.c
@@ -248,7 +248,6 @@ static zend_string *browscap_intern_str_ci(
ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(str), use_heap);
zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(str), ZSTR_LEN(str));
interned = zend_hash_find_ptr(&ctx->str_interned, lcname);
- ZSTR_ALLOCA_FREE(lcname, use_heap);
if (interned) {
zend_string_addref(interned);
@@ -257,6 +256,7 @@ static zend_string *browscap_intern_str_ci(
zend_hash_add_new_ptr(&ctx->str_interned, interned, interned);
}
+ ZSTR_ALLOCA_FREE(lcname, use_heap);
return interned;
}