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>
MenuEntry->DisplayString,\r
NULL\r
);\r
MenuEntry->DisplayString,\r
NULL\r
);\r
+\r
+ if (Info != NULL)\r
+ FreePool (Info);\r
\r
OptionNumber++;\r
InsertTailList (&gFileExplorerPrivate.FsOptionMenu->Head, &MenuEntry->Link);\r
\r
OptionNumber++;\r
InsertTailList (&gFileExplorerPrivate.FsOptionMenu->Head, &MenuEntry->Link);\r