Fixed tracker #203752, Dhcp4 assert issue.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10562 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hhuan13 2010-06-02 07:55:14 +00:00
parent 4548fc2aaa
commit 39669f1281
1 changed files with 4 additions and 2 deletions

View File

@ -1516,8 +1516,10 @@ DhcpOnTimerTick (
Status = DhcpChooseOffer (DhcpSb);
if (EFI_ERROR(Status)) {
FreePool (DhcpSb->LastOffer);
DhcpSb->LastOffer = NULL;
if (DhcpSb->LastOffer != NULL) {
FreePool (DhcpSb->LastOffer);
DhcpSb->LastOffer = NULL;
}
} else {
goto ON_EXIT;
}