mirror of
https://github.com/reactos/reactos.git
synced 2025-04-18 03:34:11 +00:00
[NTOSKRNL]
- Free the string buffer after the DPRINT1 that prints the contents of the string - Fixes debug print corruption found by kmtest svn path=/trunk/; revision=47307
This commit is contained in:
parent
fdbfc02407
commit
df9115f1d2
1 changed files with 7 additions and 6 deletions
|
@ -1171,17 +1171,18 @@ IopUnloadDriver(PUNICODE_STRING DriverServiceName, BOOLEAN UnloadPnpDrivers)
|
|||
0,
|
||||
(PVOID*)&DriverObject);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Can't locate driver object for %wZ\n", &ObjectName);
|
||||
ExFreePool(ObjectName.Buffer);
|
||||
return Status;
|
||||
}
|
||||
|
||||
/*
|
||||
* Free the buffer for driver object name
|
||||
*/
|
||||
ExFreePool(ObjectName.Buffer);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Can't locate driver object for %wZ\n", &ObjectName);
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* Check that driver is not already unloading */
|
||||
if (DriverObject->Flags & DRVO_UNLOAD_INVOKED)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue