cvs: php-src(PHP_4_4) /sapi/cli php_cli.c
| From: | Antony Dovgal | Date: | Thu, 21 Dec 2006 00:43:30 +0000 |
| Subject: | cvs: php-src(PHP_4_4) /sapi/cli php_cli.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42247@lists.php.net to get a copy of this message | ||
tony2001 Thu Dec 21 00:43:30 2006 UTC
Modified files: (Branch: PHP_4_4)
/php-src/sapi/cli php_cli.c
Log:
MFH
http://cvs.php.net/viewvc.cgi/php-src/sapi/cli/php_cli.c?r1=1.51.2.37.2.4&r2=1.51.2.37.2.5&diff_format=u
Index: php-src/sapi/cli/php_cli.c
diff -u php-src/sapi/cli/php_cli.c:1.51.2.37.2.4 php-src/sapi/cli/php_cli.c:1.51.2.37.2.5
--- php-src/sapi/cli/php_cli.c:1.51.2.37.2.4 Thu May 18 20:33:46 2006
+++ php-src/sapi/cli/php_cli.c Thu Dec 21 00:43:30 2006
@@ -430,6 +430,12 @@
s_err = php_stream_open_wrapper_ex("php://stderr", "wb", 0, NULL, sc_err);
if (s_in==NULL || s_out==NULL || s_err==NULL) {
+ FREE_ZVAL(zin);
+ FREE_ZVAL(zout);
+ FREE_ZVAL(zerr);
+ if (s_in) php_stream_close(s_in);
+ if (s_out) php_stream_close(s_out);
+ if (s_err) php_stream_close(s_err);
return;
}