diff options
author | Stefan Esser <sesser@php.net> | 2002-08-08 12:40:51 +0000 |
---|---|---|
committer | Stefan Esser <sesser@php.net> | 2002-08-08 12:40:51 +0000 |
commit | 6f822fdcb716a5a5f33d04f7458c65fc5a3edbcf (patch) | |
tree | 6c1bd9ad17e5526bbcc9fafb2469efd3b03c824b | |
parent | 652baa710ef7653f1940bde07828e7c18faab653 (diff) | |
download | php-git-6f822fdcb716a5a5f33d04f7458c65fc5a3edbcf.tar.gz |
A full hard disk is no reason to leak memory...
-rw-r--r-- | main/rfc1867.c | 2 |
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; } |