Shumin,
You need to add "ShellInfoNode->Handle = NULL" after "EfiShellClose" otherwise
"EfiShellFreeFileList" in line 2372 may hang on closing the file again.
>Status = ShellSearchHandle(NextFilePatternStart,
> UnicodeCollation, ShellInfoNode->Handle, FileList, ShellInfoNode,
Reviewed-by: Jaben Carsey
> -Original Message-
> From: Qiu, Shumin
> Sent: Monday, December 21, 2015 7:19 AM
> To: edk2-devel@lists.01.org
> Cc: Qiu, Shumin ; Carsey, Jaben
> ; Ni, Ruiyu
> Subject:
1. Close unused file handle.
2. Free the local allocated buffer function returned.
Cc: Jaben Carsey
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin
Reviewed-by: Ruiyu Ni
3 matches
Mail list logo