system76-edk2/ShellPkg/Library/UefiShellDebug1CommandsLib
Sergei Antonov 6b6aa6d136 ShellPkg: Handle pool allocation failure
If AllocateZeroPool() returns NULL,
GetVariable() will return EFI_BUFFER_TOO_SMALL,
FreePool() will receive NULL.
So check for NULL before FreePool().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14688 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-19 17:23:10 +00:00
..
2013-06-11 22:07:03 +00:00
2013-06-11 22:07:03 +00:00
2013-07-30 06:41:43 +00:00
2011-10-10 20:32:17 +00:00
2011-09-02 08:05:34 +00:00
2013-06-11 22:07:03 +00:00
2013-06-11 22:07:03 +00:00