Index: /trunk/src/VBox/Runtime/common/log/log.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/log/log.cpp	(revision 37604)
+++ /trunk/src/VBox/Runtime/common/log/log.cpp	(revision 37605)
@@ -443,8 +443,8 @@
     offInternal = RT_OFFSETOF(RTLOGGER, afGroups[cGroups]);
     offInternal = RT_ALIGN_Z(offInternal, sizeof(uint64_t));
-    cbLogger = offInternal;
+    cbLogger = offInternal + sizeof(RTLOGGERINTERNAL);
     if (fFlags & RTLOGFLAGS_RESTRICT_GROUPS)
         cbLogger += cGroups * sizeof(uint32_t);
-    pLogger = (PRTLOGGER)RTMemAllocZVar(offInternal + sizeof(RTLOGGERINTERNAL));
+    pLogger = (PRTLOGGER)RTMemAllocZVar(cbLogger);
     if (pLogger)
     {
