remove duplicate memory de-allocation.
Add function header comment. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11500 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -324,14 +324,10 @@ BcfgAddDebug1(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (FileNode != NULL) {
|
|
||||||
FreePool (FileNode);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//If always Free FilePath, will free devicepath in system when use "addh"
|
//If always Free FilePath, will free devicepath in system when use "addh"
|
||||||
//
|
//
|
||||||
|
|
||||||
if (FilePath!=NULL && !UseHandle) {
|
if (FilePath!=NULL && !UseHandle) {
|
||||||
FreePool (FilePath);
|
FreePool (FilePath);
|
||||||
}
|
}
|
||||||
@ -467,6 +463,14 @@ BcfgMoveDebug1(
|
|||||||
return (SHELL_SUCCESS);
|
return (SHELL_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Function to add optional data to an option.
|
||||||
|
|
||||||
|
@param[in] OptData The optional data to add.
|
||||||
|
@param[in] Target The target of the operation.
|
||||||
|
|
||||||
|
@retval SHELL_SUCCESS The operation was succesful.
|
||||||
|
**/
|
||||||
SHELL_STATUS
|
SHELL_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BcfgAddOptDebug1(
|
BcfgAddOptDebug1(
|
||||||
|
@ -324,14 +324,10 @@ BcfgAddInstall1(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (FileNode != NULL) {
|
|
||||||
FreePool (FileNode);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//If always Free FilePath, will free devicepath in system when use "addh"
|
//If always Free FilePath, will free devicepath in system when use "addh"
|
||||||
//
|
//
|
||||||
|
|
||||||
if (FilePath!=NULL && !UseHandle) {
|
if (FilePath!=NULL && !UseHandle) {
|
||||||
FreePool (FilePath);
|
FreePool (FilePath);
|
||||||
}
|
}
|
||||||
@ -467,6 +463,14 @@ BcfgMoveInstall1(
|
|||||||
return (SHELL_SUCCESS);
|
return (SHELL_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Function to add optional data to an option.
|
||||||
|
|
||||||
|
@param[in] OptData The optional data to add.
|
||||||
|
@param[in] Target The target of the operation.
|
||||||
|
|
||||||
|
@retval SHELL_SUCCESS The operation was succesful.
|
||||||
|
**/
|
||||||
SHELL_STATUS
|
SHELL_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BcfgAddOptInstall1(
|
BcfgAddOptInstall1(
|
||||||
|
Reference in New Issue
Block a user