diff options
-rw-r--r-- | ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c b/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c index c8d0e7887c..619cdd38a7 100644 --- a/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c +++ b/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c @@ -311,6 +311,7 @@ ShellCommandRunHelp ( ShellStatus = SHELL_SUCCESS;
CommandToGetHelpOn = NULL;
SectionToGetHelpOn = NULL;
+ SortedCommandList = NULL;
Found = FALSE;
//
@@ -471,6 +472,7 @@ ShellCommandRunHelp ( if (SectionToGetHelpOn != NULL) {
FreePool(SectionToGetHelpOn);
}
+ SHELL_FREE_NON_NULL(SortedCommandList);
return (ShellStatus);
}
|