]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BootOption.c
ArmPlatformPkg: Fixed memory leak after calling GetEnvironmentVariable()
[mirror_edk2.git] / ArmPlatformPkg / Bds / BootOption.c
index ee0301ef2c9b0c7eac0daad4e25d63ccee91a665..8993cb14a21a512ba0a66a4392c44c0c2a056d2c 100644 (file)
@@ -86,6 +86,7 @@ BootOptionStart (
                                 (CHAR8*)(LinuxArguments + 1),\r
                                 FdtDevicePath);\r
 \r
+      FreePool (DefaultFdtDevicePath);\r
       FreePool (FdtDevicePath);\r
     }\r
   } else {\r