don't dereference a NULL pointer
Modified: trunk/reactos/ntoskrnl/ob/object.c
--- trunk/reactos/ntoskrnl/ob/object.c 2005-08-08 15:46:41 UTC (rev 17207) +++ trunk/reactos/ntoskrnl/ob/object.c 2005-08-08 15:49:37 UTC (rev 17208) @@ -347,7 +347,7 @@
if (!NT_SUCCESS(Status)) {
- if (ObjectName->Buffer)
+ if (ObjectName != NULL && ObjectName->Buffer)
{ ExFreePool(ObjectName->Buffer); }