Index: /trunk/src/VBox/Runtime/common/misc/req.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/misc/req.cpp	(revision 24101)
+++ /trunk/src/VBox/Runtime/common/misc/req.cpp	(revision 24102)
@@ -61,12 +61,15 @@
 RTDECL(int) RTReqCreateQueue(PRTREQQUEUE *ppQueue)
 {
-    *ppQueue = (PRTREQQUEUE)RTMemAllocZ(sizeof(RTREQQUEUE));
-    if (!ppQueue)
+    PRTREQQUEUE pQueue = (PRTREQQUEUE)RTMemAllocZ(sizeof(RTREQQUEUE));
+    if (!pQueue)
         return VERR_NO_MEMORY;
-
-    int rc = RTSemEventCreate(&(*ppQueue)->EventSem);
+    int rc = RTSemEventCreate(&pQueue->EventSem);
     if (RT_SUCCESS(rc))
-        RTMemFree(*ppQueue);
-
+    {
+        *ppQueue = pQueue;
+        return VINF_SUCCESS;
+    }
+
+    RTMemFree(*ppQueue);
     return rc;
 }
