diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c index b67aefb71c..c619ba15a1 100644 --- a/ShellPkg/Application/Shell/ShellProtocol.c +++ b/ShellPkg/Application/Shell/ShellProtocol.c @@ -1620,6 +1620,7 @@ EfiShellFreeFileList( InternalFreeShellFileInfoNode(ShellFileListItem); } InternalFreeShellFileInfoNode(*FileList); + *FileList = NULL; return(EFI_SUCCESS); }