mirror of https://github.com/acidanthera/audk.git
ShellPkg: remove potential memory leak with new apps on old shell
This pointer never gets free when running new apps on the old shell. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15095 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
012305d551
commit
75a5e2ef4e
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Provides interface to shell functionality for shell commands and applications.
|
||||
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -1598,6 +1598,7 @@ ShellCloseFileMetaArg (
|
|||
FreePool(((EFI_SHELL_FILE_INFO_NO_CONST*)Node)->Info);
|
||||
FreePool((EFI_SHELL_FILE_INFO_NO_CONST*)Node);
|
||||
}
|
||||
SHELL_FREE_NON_NULL(*ListHead);
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue