[NTDLL/LDR]
authorAleksey Bragin <aleksey@reactos.org>
Sat, 26 Feb 2011 14:12:55 +0000 (14:12 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sat, 26 Feb 2011 14:12:55 +0000 (14:12 +0000)
- Don't try to free a pointer allocated on stack.
See issue #4751 for more details.

svn path=/trunk/; revision=50910

reactos/dll/ntdll/ldr/utils.c

index 345d159..e7213b3 100644 (file)
@@ -2394,7 +2394,6 @@ LdrpLoadModule(IN PWSTR SearchPath OPTIONAL,
             RtlFreeUnicodeString (&(*Module)->FullDllName);
             RtlFreeUnicodeString (&(*Module)->BaseDllName);
             RemoveEntryList (&(*Module)->InLoadOrderLinks);
             RtlFreeUnicodeString (&(*Module)->FullDllName);
             RtlFreeUnicodeString (&(*Module)->BaseDllName);
             RemoveEntryList (&(*Module)->InLoadOrderLinks);
-            RtlFreeHeap (RtlGetProcessHeap (), 0, Module);
             return Status;
         }
 
             return Status;
         }