@@ -849,8 +849,8 @@ DEBUG_TRACE_FUNC(const char *func, unsigned line, const char *fmt, ...)
#if defined(MEMORY_DEBUGGING)
-unsigned long mg_memory_debug_blockCount = 0;
-unsigned long mg_memory_debug_totalMemUsed = 0;
+static unsigned long mg_memory_debug_blockCount = 0;
+static unsigned long mg_memory_debug_totalMemUsed = 0;
static void *
@@ -808,6 +808,10 @@ MAIN_PRIVATE(void)
test_parse_port_string(0);
test_parse_http_message(0);
test_sha1(0);
+
+#if defined(_WIN32)
+ WSACleanup();
+#endif
}
#endif