]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c
ArmPlatformPkg: Fixed memory leak after calling GetEnvironmentVariable()
[mirror_edk2.git] / EmbeddedPkg / Application / AndroidFastboot / Arm / BootAndroidBootImg.c
index 6f4b66beebc14c468e90a1b785ce459a0cb15dfc..04ad9c05db4b433f33c8db10342528e2d38f0308 100644 (file)
@@ -118,6 +118,8 @@ BootAndroidBootImg (
     FreePool (RamdiskDevicePath);\r
   }\r
 \r
+  FreePool (FdtDevicePath);\r
+\r
   // If we got here we do a confused face because BootLinuxFdt returned,\r
   // reporting success.\r
   DEBUG ((EFI_D_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n"));\r