From: Thomas Bluemel Date: Mon, 8 Aug 2005 15:49:37 +0000 (+0000) Subject: don't dereference a NULL pointer X-Git-Tag: ReactOS-0.2.8~1169 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=273d211c941abdebea0f6668fcc984211a56217d don't dereference a NULL pointer svn path=/trunk/; revision=17208 --- diff --git a/reactos/ntoskrnl/ob/object.c b/reactos/ntoskrnl/ob/object.c index a2bfa7cb1f9..70adcc1f6f6 100644 --- a/reactos/ntoskrnl/ob/object.c +++ b/reactos/ntoskrnl/ob/object.c @@ -347,7 +347,7 @@ ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, if (!NT_SUCCESS(Status)) { - if (ObjectName->Buffer) + if (ObjectName != NULL && ObjectName->Buffer) { ExFreePool(ObjectName->Buffer); }