[ros-diffs] [tamlin] 13272: Fixe use of memory after it had been free'd.

tamlin at svn.reactos.com tamlin at svn.reactos.com
Tue Jan 25 17:38:20 CET 2005


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;
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050125/fca97fe8/attachment.html


More information about the Ros-diffs mailing list