mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/SetupBrowser: Should free ConfigResp when it no longer be used
When submit form fail, the progress point to the first fail part in ConfigResp, so should free the ConfigResp after Progrss has been processed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
parent
7b13510f2a
commit
fa209e8c20
|
@ -3228,7 +3228,6 @@ SubmitForForm (
|
|||
ConfigResp,
|
||||
&Progress
|
||||
);
|
||||
FreePool (ConfigResp);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
//
|
||||
|
@ -3237,9 +3236,11 @@ SubmitForForm (
|
|||
SubmitFormFail = TRUE;
|
||||
GetSyncRestoreConfigRequest (ConfigInfo->Storage, ConfigInfo->ConfigRequest, Progress, &ConfigInfo->RestoreConfigRequest, &ConfigInfo->SyncConfigRequest);
|
||||
InsertTailList (&gBrowserSaveFailFormSetList, &ConfigInfo->SaveFailLink);
|
||||
FreePool (ConfigResp);
|
||||
continue;
|
||||
}
|
||||
|
||||
FreePool (ConfigResp);
|
||||
//
|
||||
// 3. Config success, update storage shadow Buffer, only update the data belong to this form.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue