Author: fireball
Date: Thu Mar 6 11:52:55 2008
New Revision: 32580
URL:
http://svn.reactos.org/svn/reactos?rev=3D32580&view=3Drev
Log:
- Don't free buffers if they were not allocated.
Modified:
trunk/reactos/ntoskrnl/io/iomgr/drvrlist.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/drvrlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/drv=
rlist.c?rev=3D32580&r1=3D32579&r2=3D32580&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/ntoskrnl/io/iomgr/drvrlist.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/drvrlist.c Thu Mar 6 11:52:55 2008
@@ -372,8 +372,10 @@
{
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);
}