summaryrefslogtreecommitdiff
path: root/ext/standard/browscap.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-12-23 20:20:04 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-12-23 20:20:04 +0100
commit64de5bc224584e1da08c5c2bdf76db72ccbaaaab (patch)
tree94ada96bcd2c850f067794ed7f380b4fd13f0aee /ext/standard/browscap.c
parent8db63adb6df9727962f1f0498389f841866654a1 (diff)
downloadphp-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.c2
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;
}
}