cvs: php4 /main rfc1867.c

From: Date: Thu, 08 Aug 2002 12:40:52 +0000
Subject: cvs: php4 /main rfc1867.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13210@lists.php.net to get a copy of this message
sesser Thu Aug 8 08:40:52 2002 EDT Modified files: /php4/main rfc1867.c Log: A full hard disk is no reason to leak memory... Index: php4/main/rfc1867.c diff -u php4/main/rfc1867.c:1.112 php4/main/rfc1867.c:1.113 --- php4/main/rfc1867.c:1.112 Fri Aug 2 06:22:31 2002 +++ php4/main/rfc1867.c Thu Aug 8 08:40:51 2002 @@ -16,7 +16,7 @@ | Jani Taskinen <sniper@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: rfc1867.c,v 1.112 2002/08/02 10:22:31 helly Exp $ */ +/* $Id: rfc1867.c,v 1.113 2002/08/08 12:40:51 sesser Exp $ */ /* * This product includes software developed by the Apache Group @@ -760,6 +760,8 @@ /* 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; }

« previous php.cvs (#13210) next »