summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2002-08-08 12:40:51 +0000
committerStefan Esser <sesser@php.net>2002-08-08 12:40:51 +0000
commit6f822fdcb716a5a5f33d04f7458c65fc5a3edbcf (patch)
tree6c1bd9ad17e5526bbcc9fafb2469efd3b03c824b
parent652baa710ef7653f1940bde07828e7c18faab653 (diff)
downloadphp-git-6f822fdcb716a5a5f33d04f7458c65fc5a3edbcf.tar.gz
A full hard disk is no reason to leak memory...
-rw-r--r--main/rfc1867.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index 861ddcc000..dd0651abc5 100644
--- a/main/rfc1867.c
+++ b/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;
}