]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
remove duplicate memory de-allocation.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Bcfg.c
index d278ee60e6696d7d717670a1fb99cb53a089821f..e6884a2d59307fa49a8a5b946b20ae635cf988c2 100644 (file)
@@ -324,14 +324,10 @@ BcfgAddDebug1(
       }\r
     }\r
   }\r
-  if (FileNode != NULL) {\r
-    FreePool (FileNode);\r
-  }\r
 \r
 //\r
 //If always Free FilePath, will free devicepath in system when use "addh"\r
 //\r
-\r
   if (FilePath!=NULL && !UseHandle) {\r
     FreePool (FilePath);\r
   }\r
@@ -467,6 +463,14 @@ BcfgMoveDebug1(
   return (SHELL_SUCCESS);\r
 }\r
 \r
+/**\r
+  Function to add optional data to an option.\r
+\r
+  @param[in] OptData      The optional data to add.\r
+  @param[in] Target       The target of the operation.\r
+\r
+  @retval SHELL_SUCCESS   The operation was succesful.\r
+**/\r
 SHELL_STATUS\r
 EFIAPI\r
 BcfgAddOptDebug1(\r