mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
A full hard disk is no reason to leak memory...
This commit is contained in:
parent
652baa710e
commit
6f822fdcb7
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue