mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
Fix a potential issue to use FreePool() with NULL pointer.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9068 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
db63aeea6d
commit
737dfc3612
@ -11,7 +11,7 @@
|
|||||||
always on the first sector of a media. The first sector also contains
|
always on the first sector of a media. The first sector also contains
|
||||||
the legacy boot strap code.
|
the legacy boot strap code.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
|
Copyright (c) 2006 - 2009, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -136,7 +136,7 @@ PartitionInstallMbrChildHandles (
|
|||||||
|
|
||||||
Mbr = AllocatePool (BlockIo->Media->BlockSize);
|
Mbr = AllocatePool (BlockIo->Media->BlockSize);
|
||||||
if (Mbr == NULL) {
|
if (Mbr == NULL) {
|
||||||
goto Done;
|
return Found;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = DiskIo->ReadDisk (
|
Status = DiskIo->ReadDisk (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user