mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:35:59 +00:00
- Don't free a NULL pointer.
svn path=/trunk/; revision=29541
This commit is contained in:
parent
499e470b9f
commit
2f452c335b
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ CmiLoadHive(IN POBJECT_ATTRIBUTES KeyObjectAttributes,
|
|||
IN PUNICODE_STRING FileName,
|
||||
IN ULONG Flags)
|
||||
{
|
||||
PEREGISTRY_HIVE Hive;
|
||||
PEREGISTRY_HIVE Hive = NULL;
|
||||
NTSTATUS Status;
|
||||
BOOLEAN Allocate = TRUE;
|
||||
|
||||
|
@ -43,7 +43,7 @@ CmiLoadHive(IN POBJECT_ATTRIBUTES KeyObjectAttributes,
|
|||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("CmpInitHiveFromFile() failed (Status %lx)\n", Status);
|
||||
ExFreePool(Hive);
|
||||
if (Hive) ExFreePool(Hive);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue