]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
ShellPkg: Fix memory leak in function'ShellCommandConsistMappingInitialize'.
[mirror_edk2.git] / ShellPkg / Library / UefiShellCommandLib / ConsistMapping.c
index 86e8dc59a8951bab39356886c7ec2428e32d6110..41754dd905d699bae30c3d304a156517f0c359d1 100644 (file)
@@ -1401,6 +1401,7 @@ ShellCommandConsistMappingInitialize (
                                     (VOID **)&SimpleFileSystem\r
                                     );\r
       if (EFI_ERROR(Status)) {\r
+        FreePool (HIDevicePath);\r
         continue;\r
       }\r
     }\r