wez Thu Dec 18 06:32:20 2003 EDT
Modified files:
/php-src/win32 winutil.c
Log:
make it totally safe again
Index: php-src/win32/winutil.c
diff -u php-src/win32/winutil.c:1.13 php-src/win32/winutil.c:1.14
--- php-src/win32/winutil.c:1.13 Thu Dec 18 06:16:16 2003
+++ php-src/win32/winutil.c Thu Dec 18 06:32:19 2003
@@ -1,6 +1,6 @@
/*
+----------------------------------------------------------------------+
- | PHP Version 4 |
+ | PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
+----------------------------------------------------------------------+
@@ -16,20 +16,13 @@
+----------------------------------------------------------------------+
*/
+/* $Id: winutil.c,v 1.14 2003/12/18 11:32:19 wez Exp $ */
+
#include "php.h"
PHPAPI char *php_win_err(int error)
{
- static char *buf = NULL;
-
-#if MBO_0
- /* leak for now */
- if (buf) {
- free(buf);
- }
-#endif
-
- buf = NULL;
+ char *buf = NULL;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php