From e649692565aa7d45f6915bab5273530c33e2f334 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 18 Dec 2003 11:05:20 +0000 Subject: [PATCH] Leak for b3 and find a better solution until RC1 --- win32/winutil.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.40.0