mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
MdeModulePkg: FileExplorerLib: prevent freeing null pointer
when there's no volume label 'Info' can be NULL Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
parent
6e7423c3c2
commit
140cc8000f
@ -775,7 +775,9 @@ LibFindFileSystem (
|
|||||||
MenuEntry->DisplayString,
|
MenuEntry->DisplayString,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
FreePool (Info);
|
|
||||||
|
if (Info != NULL)
|
||||||
|
FreePool (Info);
|
||||||
|
|
||||||
OptionNumber++;
|
OptionNumber++;
|
||||||
InsertTailList (&gFileExplorerPrivate.FsOptionMenu->Head, &MenuEntry->Link);
|
InsertTailList (&gFileExplorerPrivate.FsOptionMenu->Head, &MenuEntry->Link);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user