summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}