mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
Fix invalid memory read on libpath
Introduced in 3e33e1e86d
.
Closes GH-6362.
This commit is contained in:
parent
a1cac4fefc
commit
5998b2a3a6
@ -374,13 +374,13 @@ static void php_load_zend_extension_cb(void *arg)
|
||||
|
||||
efree(orig_libpath);
|
||||
efree(err1);
|
||||
efree(libpath);
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
if (!php_win32_image_compatible(handle, &err1)) {
|
||||
php_error(E_CORE_WARNING, err1);
|
||||
efree(err1);
|
||||
efree(libpath);
|
||||
DL_UNLOAD(handle);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user