summaryrefslogtreecommitdiff
path: root/win32/winutil.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-18 11:05:20 +0000
committerMarcus Boerger <helly@php.net>2003-12-18 11:05:20 +0000
commite649692565aa7d45f6915bab5273530c33e2f334 (patch)
treeb2d2c9fa1780287367f7e0470b30b4cfbd84aa1b /win32/winutil.c
parentb8ea4e6fd218444162ad762000abaabe1cb1b5d1 (diff)
downloadphp-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.c3
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