diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-12-23 20:20:04 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-12-23 20:20:04 +0100 |
commit | 64de5bc224584e1da08c5c2bdf76db72ccbaaaab (patch) | |
tree | 94ada96bcd2c850f067794ed7f380b4fd13f0aee /ext/standard/browscap.c | |
parent | 8db63adb6df9727962f1f0498389f841866654a1 (diff) | |
download | php-git-64de5bc224584e1da08c5c2bdf76db72ccbaaaab.tar.gz |
Fix invalid efree in browscap
Related to bug #77338.
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 0f98293047..f1d3c734e1 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -713,7 +713,7 @@ PHP_FUNCTION(get_browser) found_entry = zend_hash_str_find_ptr(bdata->htab, DEFAULT_SECTION_NAME, sizeof(DEFAULT_SECTION_NAME)-1); if (found_entry == NULL) { - efree(lookup_browser_name); + zend_string_release(lookup_browser_name); RETURN_FALSE; } } |