Fixe use of memory after it had been free'd.
Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c

Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c
--- trunk/reactos/ntoskrnl/cm/ntfunc.c	2005-01-25 16:26:01 UTC (rev 13271)
+++ trunk/reactos/ntoskrnl/cm/ntfunc.c	2005-01-25 16:38:18 UTC (rev 13272)
@@ -119,8 +119,8 @@
   if (End != NULL)
     {
       ObDereferenceObject(Object);
+      DPRINT1("NtCreateKey() can't create trees! (found \'\\\' in remaining path: \"%wZ\"!)\n", &RemainingPath);
       RtlFreeUnicodeString(&RemainingPath);
-      DPRINT1("NtCreateKey() can't create trees! (found \'\\\' in remaining path: \"%wZ\"!)\n", &RemainingPath);
       return STATUS_OBJECT_NAME_NOT_FOUND;
     }