Index: /trunk/src/VBox/Devices/Storage/IOBufMgmt.cpp
===================================================================
--- /trunk/src/VBox/Devices/Storage/IOBufMgmt.cpp	(revision 65218)
+++ /trunk/src/VBox/Devices/Storage/IOBufMgmt.cpp	(revision 65219)
@@ -275,4 +275,6 @@
         cbAlloc = pSeg->cbSeg;
         AssertPtr(pSeg->pvSeg);
+
+        pThis->cbFree -= cbAlloc;
     }
 
@@ -406,6 +408,4 @@
                || RT_FAILURE(rc));
 
-        pThis->cbFree -= cbIoBufAlloc;
-
         RTCritSectLeave(&pThis->CritSectAlloc);
     }
