Fix the prediction warnings in DxeMain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5190 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -467,7 +467,7 @@ CoreGrowBuffer (
|
||||
//
|
||||
// If there's an error, free the buffer
|
||||
//
|
||||
if ((!TryAgain) && (EFI_ERROR (*Status)) && (*Buffer)) {
|
||||
if ((!TryAgain) && (EFI_ERROR (*Status)) && (*Buffer != NULL)) {
|
||||
CoreFreePool (*Buffer);
|
||||
*Buffer = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user