]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Strings.c
Remove SafeFreePool from MemoryAllocationLib as this API's name is misleading. Its...
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / FrameworkHiiToUefiHiiThunk / Strings.c
index c648e1da1a2203d102b0ccc9a4978b240cc87001..5c499392fe272eea8e7af271a5b0dcee3d2a20d2 100644 (file)
@@ -378,7 +378,9 @@ Returns:
   }\r
 \r
 Done:\r
-  SafeFreePool (Iso639AsciiLanguage);\r
+       if (Iso639AsciiLanguage != NULL) {\r
+    FreePool (Iso639AsciiLanguage);\r
+  }\r
   \r
   return Status;\r
 }\r