mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[NTOSKRNL]
Plug (and play?) a memory leak svn path=/trunk/; revision=67774
This commit is contained in:
parent
a7fea1598b
commit
3ab971bc6b
1 changed files with 3 additions and 0 deletions
|
@ -76,7 +76,10 @@ IopQueueTargetDeviceEvent(const GUID *Guid,
|
||||||
Copy.Buffer = EventEntry->Event.TargetDevice.DeviceIds;
|
Copy.Buffer = EventEntry->Event.TargetDevice.DeviceIds;
|
||||||
Status = RtlAppendUnicodeStringToString(&Copy, DeviceIds);
|
Status = RtlAppendUnicodeStringToString(&Copy, DeviceIds);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
ExFreePool(EventEntry);
|
||||||
return Status;
|
return Status;
|
||||||
|
}
|
||||||
|
|
||||||
InsertHeadList(&IopPnpEventQueueHead,
|
InsertHeadList(&IopPnpEventQueueHead,
|
||||||
&EventEntry->ListEntry);
|
&EventEntry->ListEntry);
|
||||||
|
|
Loading…
Reference in a new issue