move DeleteScriptFileStruct from a private to a public function. This allows for better memory cleanup when errors occur.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10906 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jcarsey
2010-10-04 16:26:29 +00:00
parent 40d7a9cfaa
commit 0ab85bef03
3 changed files with 28 additions and 23 deletions

View File

@ -419,6 +419,17 @@ ShellCommandSetNewScript (
IN SCRIPT_FILE *Script OPTIONAL
);
/**
Function to cleanup all memory from a SCRIPT_FILE structure.
@param[in] Script The pointer to the structure to cleanup.
**/
VOID
EFIAPI
DeleteScriptFileStruct (
IN SCRIPT_FILE *Script
);
/**
Function to get the current Profile string.