mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
A full hard disk is no reason to leak memory...
This commit is contained in:
parent
652baa710e
commit
6f822fdcb7
@ -760,6 +760,8 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
|
||||
/* Handle file */
|
||||
fp = php_open_temporary_file(PG(upload_tmp_dir), "php", &temp_filename TSRMLS_CC);
|
||||
if (!fp) {
|
||||
efree(param);
|
||||
efree(filename);
|
||||
sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file");
|
||||
SAFE_RETURN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user