mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 14:00:40 -10:00
when free up resource allocated for a MenuEntry, there exists the case that the DevicePath and DisplayString are NULL, so before calling FreePool function, need to check. Please note that on master branch, the file-explorer related codes in MdeModulePkg/Application/UiApp/BootMaint/ have been extracted into an independent library called FileExplorerLib in MdeModulePkg/Library/. Here, we pick the commitbbd6b0106e(on master branch, fixes the same issue in FileExplorerLib) and integrate it into MdeModulePkg/Application/UiApp/BootMaint on UDK2015 branch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <[email protected]> Reviewed-by: Eric Dong <[email protected]> (cherry picked from commitbbd6b0106e)