Skip to content

Commit 5998b2a

Browse files
twosenikic
authored andcommitted
Fix invalid memory read on libpath
Introduced in 3e33e1e. Closes GH-6362.
1 parent a1cac4f commit 5998b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/php_ini.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,13 @@ static void php_load_zend_extension_cb(void *arg)
374374

375375
efree(orig_libpath);
376376
efree(err1);
377-
efree(libpath);
378377
}
379378

380379
#ifdef PHP_WIN32
381380
if (!php_win32_image_compatible(handle, &err1)) {
382381
php_error(E_CORE_WARNING, err1);
383382
efree(err1);
383+
efree(libpath);
384384
DL_UNLOAD(handle);
385385
return;
386386
}

0 commit comments

Comments
 (0)