cvs: php-src /win32 winutil.c

From: Date: Thu, 18 Dec 2003 11:32:20 +0000
Subject: cvs: php-src /win32 winutil.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25285@lists.php.net to get a copy of this message
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,

« previous php.cvs (#25285) next »