audk/ShellPkg/Application/Shell
Marvin H?user bd3fc8133b ShellPkg/App: Fix memory leak and save resources.
1) RunSplitCommand() allocates the initial SplitStdOut via
   CreateFileInterfaceMem(). Free SplitStdIn after the swap to fix
   the memory leak.

2) In RunSplitCommand(), SplitStdOut is checked for equality with
   StdIn. This cannot happen due to the if-check within the swap.
   Hence remove it.

3) UefiMain() doesn't free SplitList. Delete all list entries and
   reinitialize the list when in DEBUG. This does not include the
   CreateFileInterfaceMem()-allocated SplitStd mentioned in 1), so
   keep the ASSERT() until resolved.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
2016-05-25 10:16:46 +08:00
..
ConsoleLogger.c
ConsoleLogger.h
ConsoleWrappers.c
ConsoleWrappers.h
FileHandleInternal.h
FileHandleWrappers.c ShellPkg: Fix the incorrect behavior when pressing 'shift' key. 2016-05-18 09:41:29 +08:00
FileHandleWrappers.h
Shell.c ShellPkg/App: Fix memory leak and save resources. 2016-05-25 10:16:46 +08:00
Shell.h
Shell.inf
Shell.uni report line number for command errors in a script. 2016-05-12 08:15:00 -07:00
ShellEnvVar.c
ShellEnvVar.h
ShellManParser.c
ShellManParser.h
ShellParametersProtocol.c
ShellParametersProtocol.h
ShellProtocol.c ShellPkg: Fix Shell treats every .EFI file as an executable application. 2016-04-26 14:37:50 +08:00
ShellProtocol.h