diff options
author | Nikita Popov <nikic@php.net> | 2017-01-03 02:12:28 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2017-01-03 02:12:28 +0100 |
commit | e1e5caf9d42e8ff28a18b1369810415e3fef162c (patch) | |
tree | 1e0bc6d6a819fb41d7d4c0a3f4d5b1884e363fb4 /ext/standard/browscap.c | |
parent | f12f0b2bc2d7755cfa56183088f16ee7f8598cba (diff) | |
download | php-git-e1e5caf9d42e8ff28a18b1369810415e3fef162c.tar.gz |
Fix early free
Diffstat (limited to 'ext/standard/browscap.c')
-rw-r--r-- | ext/standard/browscap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index 71491bcb45..b927068950 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; } |