Index: /trunk/src/VBox/VMM/testcase/tstSSM.cpp
===================================================================
--- /trunk/src/VBox/VMM/testcase/tstSSM.cpp	(revision 59846)
+++ /trunk/src/VBox/VMM/testcase/tstSSM.cpp	(revision 59847)
@@ -633,5 +633,5 @@
      * Allocate and init the UVM structure.
      */
-    PUVM pUVM = (PUVM)RTMemAllocZ(sizeof(*pUVM));
+    PUVM pUVM = (PUVM)RTMemPageAllocZ(sizeof(*pUVM));
     AssertReturn(pUVM, 1);
     pUVM->u32Magic = UVM_MAGIC;
@@ -685,4 +685,18 @@
 
 /**
+ * Destroy the VM structure.
+ *
+ * @param   pVM     Pointer to the VM.
+ *
+ * @todo    Move this to VMM/VM since it's stuff done by several testcases.
+ */
+static void destroyFakeVM(PVM pVM)
+{
+    STAMR3TermUVM(pVM->pUVM);
+    MMR3TermUVM(pVM->pUVM);
+}
+
+
+/**
  *  Entry point.
  */
@@ -913,4 +927,6 @@
     }
 
+    destroyFakeVM(pVM);
+
     /* delete */
     RTFileDelete(pszFilename);
