- Don't free buffers if they were not allocated.

svn path=/trunk/; revision=32580
This commit is contained in:
Aleksey Bragin
2008-03-06 10:52:55 +00:00
parent ae0ebdc3eb
commit c0a5256ea4
+4 -2
View File
@@ -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);
}