]> granicus.if.org Git - php/commitdiff
Leak for b3 and find a better solution until RC1
authorMarcus Boerger <helly@php.net>
Thu, 18 Dec 2003 11:05:20 +0000 (11:05 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 18 Dec 2003 11:05:20 +0000 (11:05 +0000)
win32/winutil.c

index 220fea294ccb5d49d8b799f8820257ad7998a897..6fccb041d79fcfa7ff0278cfd84abb6a87c92cb0 100644 (file)
@@ -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