}\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
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