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
}\r
\r
FreePool (Variable);\r
+ FreePool (Option->Description);\r
+ FreePool (Option->DevicePath);\r
+ FreePool (Option->LoadOptions);\r
FreePool (Option);\r
return NULL;\r
-\r
}\r
\r
/**\r
//\r
// If video device has been set to this mode, we do not need to SetMode again\r
//\r
+ FreePool (Info);\r
break;\r
} else {\r
Status = GraphicsOutput->SetMode (GraphicsOutput, ModeNumber);\r
//\r
// Return FALSE if any characters are different.\r
//\r
+ FreePool (Lan1);\r
+ FreePool (Lan2);\r
return FALSE;\r
}\r
}\r