From: Marcus Boerger Date: Thu, 18 Dec 2003 11:05:20 +0000 (+0000) Subject: Leak for b3 and find a better solution until RC1 X-Git-Tag: php-5.0.0b3RC2~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e649692565aa7d45f6915bab5273530c33e2f334;p=php Leak for b3 and find a better solution until RC1 --- 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