Fix a bug to handle case that SendForm() is called with an invalid FormSetGuid.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9422 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xdu2 2009-11-13 05:40:21 +00:00
parent 8f97f91154
commit 4c8358c77a
1 changed files with 8 additions and 0 deletions

View File

@ -655,6 +655,14 @@ DestroyFormSet (
FORM_EXPRESSION *Expression; FORM_EXPRESSION *Expression;
FORM_BROWSER_FORM *Form; FORM_BROWSER_FORM *Form;
if (FormSet->IfrBinaryData == NULL) {
//
// Uninitialized FormSet
//
FreePool (FormSet);
return;
}
// //
// Free IFR binary buffer // Free IFR binary buffer
// //