Browse Source

A full hard disk is no reason to leak memory...

experimental/new_apache_hooks
Stefan Esser 24 years ago
parent
commit
6f822fdcb7
  1. 2
      main/rfc1867.c

2
main/rfc1867.c

@ -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…
Cancel
Save