]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrOnTheFly.c
Fix FreePoll() bugs in some places.
[mirror_edk2.git] / IntelFrameworkPkg / Library / FrameworkIfrSupportLib / IfrOnTheFly.c
index 4bdc40e54bce4428f2626b34554cccec6245bd12..99386adac030ccd3ed4b45ec7111752a11b76f9a 100644 (file)
@@ -72,6 +72,8 @@ CreateFormSet (
   GetCurrentLanguage (CurrentLanguage);\r
   Status = AddString (*StringBuffer, CurrentLanguage, FormSetTitle, &StringToken);\r
   if (EFI_ERROR (Status)) {\r
+    FreePool (FormBuffer);\r
+    FreePool (StringBuffer);\r
     return Status;\r
   }\r
 \r