Correct DriverSample to produce the ConfigAccess protocol
And fix the bug in HiiDataBase to incorrectly free pool. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8321 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -873,9 +873,9 @@ ParseIfrData (
|
||||
LengthString = StrLen (GuidStr);
|
||||
LengthString = LengthString + StrLen (NameStr) + 1;
|
||||
TempStr = AllocateZeroPool (LengthString * sizeof (CHAR16));
|
||||
FreePool (GuidStr);
|
||||
FreePool (NameStr);
|
||||
if (TempStr == NULL) {
|
||||
FreePool (GuidStr);
|
||||
FreePool (NameStr);
|
||||
FreePool (VarStoreName);
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto Done;
|
||||
@@ -899,6 +899,8 @@ ParseIfrData (
|
||||
//
|
||||
// Free alllocated temp string.
|
||||
//
|
||||
FreePool (GuidStr);
|
||||
FreePool (NameStr);
|
||||
FreePool (TempStr);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user