]> git.proxmox.com Git - mirror_edk2.git/commitdiff
remove duplicate memory de-allocation.
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Apr 2011 22:19:02 +0000 (22:19 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Apr 2011 22:19:02 +0000 (22:19 +0000)
Add function header comment.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11500 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
ShellPkg/Library/UefiShellInstall1CommandsLib/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
index ec03df1d60413aff51aeea2b37ea94da388a6ec2..aeb3fcd10e447e80909f80ce3afdd0484e15c81e 100644 (file)
@@ -324,14 +324,10 @@ BcfgAddInstall1(
       }\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 @@ BcfgMoveInstall1(
   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
 BcfgAddOptInstall1(\r