summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-05-19 14:17:34 +0800
committerStar Zeng <star.zeng@intel.com>2016-05-25 16:31:37 +0800
commit4b7345a7dd71bdc99a824facf55066838ec240da (patch)
tree67a3e90c526485736b4e708a0a119fd8901ab58e /MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
parente4979beee9e5d334d97fd8e2c79670ad08587bc6 (diff)
downloadedk2-4b7345a7dd71bdc99a824facf55066838ec240da.zip
edk2-4b7345a7dd71bdc99a824facf55066838ec240da.tar.gz
edk2-4b7345a7dd71bdc99a824facf55066838ec240da.tar.bz2
MdeModulePkg/DisplayEngine: Fix memory leak issues in DisplayEngine
The following codes are useless and cause memory leak issues. So now remove them. Cc: Cecil Sheng <cecil.sheng@hpe.com> Cc: Qiu Shumin <shumin.qiu@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c')
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c b/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
index bb2faf3..c61a395 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c
@@ -2,7 +2,7 @@
Implementation for handling the User Interface option processing.
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2016, 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
@@ -885,18 +885,8 @@ PasswordProcess (
gUserInput->InputValue.BufferLen = Question->CurrentValue.BufferLen;
gUserInput->InputValue.Type = Question->CurrentValue.Type;
gUserInput->InputValue.Value.string = HiiSetString(gFormData->HiiHandle, gUserInput->InputValue.Value.string, StringPtr, NULL);
- FreePool (StringPtr);
Status = EFI_SUCCESS;
-
- if (EFI_ERROR (Status)) {
- //
- // Reset state machine for password
- //
- Question->PasswordCheck (gFormData, Question, NULL);
- }
-
- return Status;
} else {
//
// Reset state machine for password