diff options
| author | Marcus Boerger <helly@php.net> | 2003-12-18 11:05:20 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-12-18 11:05:20 +0000 |
| commit | e649692565aa7d45f6915bab5273530c33e2f334 (patch) | |
| tree | b2d2c9fa1780287367f7e0470b30b4cfbd84aa1b /win32/winutil.c | |
| parent | b8ea4e6fd218444162ad762000abaabe1cb1b5d1 (diff) | |
| download | php-git-e649692565aa7d45f6915bab5273530c33e2f334.tar.gz | |
Leak for b3 and find a better solution until RC1
Diffstat (limited to 'win32/winutil.c')
| -rw-r--r-- | win32/winutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/winutil.c b/win32/winutil.c index 220fea294c..6fccb041d7 100644 --- a/win32/winutil.c +++ b/win32/winutil.c @@ -22,10 +22,13 @@ PHPAPI char *php_win_err(int error) { static char *buf = NULL; +#if MBO_0 + /* leak for now */ if (buf) { free(buf); buf = NULL; } +#endif FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0, NULL |
