\r
Done:\r
FreePool (LangCodes3066);\r
- SafeFreePool (LangCodes639);\r
+ if (LangCodes639 != NULL) {\r
+ FreePool (LangCodes639);\r
+ }\r
\r
return Status;\r
}\r
*LanguageString = AsciiStrToUnicodeStr (SecLangCodes639, UnicodeSecLangCodes639);\r
\r
Done:\r
- \r
- SafeFreePool (PrimaryLang639);\r
- SafeFreePool (SecLangCodes639);\r
- SafeFreePool (SecLangCodes3066);\r
- SafeFreePool (UnicodeSecLangCodes639);\r
+ if (PrimaryLang639 != NULL) {\r
+ FreePool (PrimaryLang639);\r
+ }\r
+ if (SecLangCodes639 != NULL) {\r
+ FreePool (SecLangCodes639);\r
+ }\r
+ if (SecLangCodes3066 != NULL) {\r
+ FreePool (SecLangCodes3066);\r
+ }\r
+ if (UnicodeSecLangCodes639 != NULL) {\r
+ FreePool (UnicodeSecLangCodes639);\r
+ }\r
\r
return Status;\r
}\r