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 ShellPkg: Make BOOLEAN variable not use explicit comparison. 2015-06-23 01:04:26 +00:00
ConsoleLogger.h Fix CRLF format 2014-01-22 08:40:29 +00:00
ConsoleWrappers.c ShellPkg: Fix memory leak in SimpleTextOutput on file. 2015-12-23 05:36:10 +00:00
ConsoleWrappers.h ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
FileHandleInternal.h Fix CRLF format 2014-01-22 08:40:29 +00:00
FileHandleWrappers.c ShellPkg: Fix the incorrect behavior when pressing 'shift' key. 2016-05-18 09:41:29 +08:00
FileHandleWrappers.h udk2010.up2.shell initial release. 2010-09-14 05:18:09 +00:00
Shell.c ShellPkg/App: Fix memory leak and save resources. 2016-05-25 10:16:46 +08:00
Shell.h ShellPkg: Per UEFI Shell 2.2 SPEC to make Shell supports 'NoNesting'. 2016-03-16 16:09:49 +08:00
Shell.inf ShellPkg: Update Guid/Protocol usages in INF files. 2016-04-13 14:52:59 +08:00
Shell.uni report line number for command errors in a script. 2016-05-12 08:15:00 -07:00
ShellEnvVar.c ShellPkg : Cache the environment variable into memory to enhance 2016-04-15 11:10:30 +08:00
ShellEnvVar.h ShellPkg : Cache the environment variable into memory to enhance 2016-04-15 11:10:30 +08:00
ShellManParser.c ShellPkg: Support finding help message embedded in resource section. 2016-02-24 15:11:14 +08:00
ShellManParser.h udk2010.up2.shell initial release. 2010-09-14 05:18:09 +00:00
ShellParametersProtocol.c ShellPkg: Use DOS format end of line. 2016-03-09 15:30:59 +08:00
ShellParametersProtocol.h ShellPkg: Don't strip positional parameters of quotation marks. 2015-11-09 02:29:31 +00:00
ShellProtocol.c ShellPkg: Fix Shell treats every .EFI file as an executable application. 2016-04-26 14:37:50 +08:00
ShellProtocol.h ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00