From c722c59176688a477978d28d78b1ebb56aff1d07 Mon Sep 17 00:00:00 2001 From: twosee Date: Wed, 21 Oct 2020 13:17:16 +0800 Subject: [PATCH] Fix invalid memory read on libpath Introduced in 3e33e1e86d15e262cd9e0224a9604e252f5d9284 --- main/php_ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/php_ini.c b/main/php_ini.c index 53c08ae3c4c45..52e3a20ebf685 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -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; }