From 0ab85bef03a4265f928ea5c9dbfa2328658738ac Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 4 Oct 2010 16:26:29 +0000 Subject: 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 --- ShellPkg/Include/Library/ShellCommandLib.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ShellPkg/Include') 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 @@ -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. -- cgit v1.2.3