diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index fa958170a1db..fcf47b5c733d 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -1810,7 +1810,6 @@ RunSplitCommand( } if (Split->SplitStdIn != NULL) { ShellInfoObject.NewEfiShellProtocol->CloseFile (Split->SplitStdIn); - FreePool (Split->SplitStdIn); } FreePool(Split);