Index: /trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
===================================================================
--- /trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp	(revision 385)
+++ /trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp	(revision 386)
@@ -74,4 +74,6 @@
                 RTPrintf("SUPPageLock -> rc=%d\n", rc);
                 rcRet++;
+                free(aPinnings[i].pv);
+                aPinnings[i].pv = aPinnings[i].pvAligned = NULL;
                 break;
             }
@@ -101,8 +103,9 @@
             }
         }
+
+
         /*
          * Allocate a bit of contiguous memory.
          */
-
         pv = SUPContAlloc(15003, &HCPhys);
         rcRet += pv == NULL || HCPhys == 0;
