\r
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
}\r
FreePool (AKMListDisplay);\r
FreePool (CipherListDisplay);\r
+ AKMListDisplay = NULL;\r
+ CipherListDisplay = NULL;\r
\r
HiiCreateGotoOpCode (\r
StartOpCodeHandle,\r
}\r
FreePool (AKMListDisplay);\r
FreePool (CipherListDisplay);\r
+ AKMListDisplay = NULL;\r
+ CipherListDisplay = NULL;\r
\r
HiiCreateGotoOpCode (\r
StartOpCodeHandle,\r
}\r
FreePool (AKMListDisplay);\r
FreePool (CipherListDisplay);\r
+ AKMListDisplay = NULL;\r
+ CipherListDisplay = NULL;\r
\r
PortHelpToken = HiiSetString (Private->RegisteredHandle, 0, PortString, NULL);\r
\r
\r
ZeroMem (Profile->PrivateKeyData, Profile->PrivateKeyDataSize);\r
FreePool (Profile->PrivateKeyData);\r
+ Profile->PrivateKeyData = NULL;\r
}\r
\r
Status = WifiMgrReadFileToBuffer (\r
\r
ZeroMem (Profile->CACertData, Profile->CACertSize);\r
FreePool (Profile->CACertData);\r
+ Profile->CACertData = NULL;\r
}\r
} else if (Private->FileType == FileTypeClientCert) {\r
if (Profile->ClientCertData != NULL) {\r
\r
ZeroMem (Profile->ClientCertData, Profile->ClientCertSize);\r
FreePool (Profile->ClientCertData);\r
+ Profile->ClientCertData = NULL;\r
}\r
} else {\r
break;\r