when there's no volume label 'Info' can be NULL
---
MdeModulePkg/Library/FileExplorerLib/FileExplorer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
b/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
index 9f75d6e..a9ca432 100644
--- a/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
+++ b/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
@@ -775,7 +775,8 @@ LibFindFileSystem (
MenuEntry->DisplayString,
NULL
);
- FreePool (Info);
+ if (Info != NULL)
+ FreePool (Info);
OptionNumber++;
InsertTailList (&gFileExplorerPrivate.FsOptionMenu->Head,
&MenuEntry->Link);
--
2.8.2
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel