diff --git a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c index 86e8dc59a8..41754dd905 100644 --- a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c +++ b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c @@ -1401,6 +1401,7 @@ ShellCommandConsistMappingInitialize ( (VOID **)&SimpleFileSystem ); if (EFI_ERROR(Status)) { + FreePool (HIDevicePath); continue; } }