]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Fix NSH parsing
authorJaben Carsey <jaben.carsey@intel.com>
Thu, 9 Jan 2014 18:02:26 +0000 (18:02 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jan 2014 18:02:26 +0000 (18:02 +0000)
commit4922715d85564441d7cf16bac1a1fa67673f6877
treeeee654f431e19e7c7bc8d00634ebd691f35623c2
parentc1f9c34621fae9bec20c2b2fce134b9dba2b0ba1
ShellPkg: Fix NSH parsing

This skips lines in NSH files that are completely comments.  This reduces the memory overhead and the later processing.

This also frees memory correctly when a second memory allocation fails.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15072 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/Shell.c