Fix invalid memory read on libpath

Introduced in 3e33e1e86d.

Closes GH-6362.
This commit is contained in:
twosee 2020-10-21 13:17:16 +08:00 committed by Nikita Popov
parent a1cac4fefc
commit 5998b2a3a6

View File

@ -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;
}