mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
- Don't free buffers if they were not allocated.
svn path=/trunk/; revision=32580
This commit is contained in:
@@ -372,8 +372,10 @@ IoDestroyDriverList(VOID)
|
||||
{
|
||||
ExFreePool(CurrentService->ServiceName.Buffer);
|
||||
ExFreePool(CurrentService->RegistryPath.Buffer);
|
||||
ExFreePool(CurrentService->ServiceGroup.Buffer);
|
||||
ExFreePool(CurrentService->ImagePath.Buffer);
|
||||
if (CurrentService->ServiceGroup.Buffer)
|
||||
ExFreePool(CurrentService->ServiceGroup.Buffer);
|
||||
if (CurrentService->ImagePath.Buffer)
|
||||
ExFreePool(CurrentService->ImagePath.Buffer);
|
||||
RemoveEntryList(&CurrentService->ServiceListEntry);
|
||||
ExFreePool(CurrentService);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user