Author: pschweitzer Date: Sat May 16 17:13:18 2015 New Revision: 67774
URL: http://svn.reactos.org/svn/reactos?rev=67774&view=rev Log: [NTOSKRNL] Plug (and play?) a memory leak
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/plugplay... ============================================================================== --- trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] Sat May 16 17:13:18 2015 @@ -76,7 +76,10 @@ Copy.Buffer = EventEntry->Event.TargetDevice.DeviceIds; Status = RtlAppendUnicodeStringToString(&Copy, DeviceIds); if (!NT_SUCCESS(Status)) + { + ExFreePool(EventEntry); return Status; + }
InsertHeadList(&IopPnpEventQueueHead, &EventEntry->ListEntry);