Fix memory leak issues.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13288 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -758,6 +758,7 @@ CheckModeSupported (
|
||||
//
|
||||
// If video device has been set to this mode, we do not need to SetMode again
|
||||
//
|
||||
FreePool (Info);
|
||||
break;
|
||||
} else {
|
||||
Status = GraphicsOutput->SetMode (GraphicsOutput, ModeNumber);
|
||||
|
Reference in New Issue
Block a user