diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-04 16:26:29 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-10-04 16:26:29 +0000 |
commit | 0ab85bef03a4265f928ea5c9dbfa2328658738ac (patch) | |
tree | 924fee2520d68741cd4d455fe05bbb2665ba5d7a /ShellPkg/Include | |
parent | 40d7a9cfaa529a8ed50a039719c09c42e05c496f (diff) | |
download | edk2-platforms-0ab85bef03a4265f928ea5c9dbfa2328658738ac.tar.xz |
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
Diffstat (limited to 'ShellPkg/Include')
-rw-r--r-- | ShellPkg/Include/Library/ShellCommandLib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ShellPkg/Include/Library/ShellCommandLib.h b/ShellPkg/Include/Library/ShellCommandLib.h index 53cc80b4b5..af16c85ef3 100644 --- a/ShellPkg/Include/Library/ShellCommandLib.h +++ b/ShellPkg/Include/Library/ShellCommandLib.h @@ -420,6 +420,17 @@ ShellCommandSetNewScript ( );
/**
+ 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.
This is used to retrieve what profiles were installed.
|