]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/DnsDxe/ComponentName.c
Vlv2TbltDevicePkg:Change UNIX to DOS format.
[mirror_edk2.git] / NetworkPkg / DnsDxe / ComponentName.c
index d95ed92d8a2eaa4279f137fd36970bb038d78837..d976bc684984fe958284d6627a4a90a19a4c8856 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Implementation of EFI_COMPONENT_NAME_PROTOCOL and EFI_COMPONENT_NAME2_PROTOCOL protocol.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\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
@@ -211,6 +211,13 @@ UpdateDns4Name (
     ModeData.DnsConfigData.LocalPort\r
     );\r
 \r
+  if (ModeData.DnsCacheList != NULL) {\r
+    FreePool (ModeData.DnsCacheList);\r
+  }\r
+  if (ModeData.DnsServerList != NULL) {\r
+    FreePool (ModeData.DnsServerList);\r
+  }\r
+\r
   if (gDnsControllerNameTable != NULL) {\r
     FreeUnicodeStringTable (gDnsControllerNameTable);\r
     gDnsControllerNameTable = NULL;\r
@@ -281,6 +288,13 @@ UpdateDns6Name (
     ModeData.DnsConfigData.LocalPort\r
     );\r
 \r
+  if (ModeData.DnsCacheList != NULL) {\r
+    FreePool (ModeData.DnsCacheList);\r
+  }\r
+  if (ModeData.DnsServerList != NULL) {\r
+    FreePool (ModeData.DnsServerList);\r
+  }\r
+\r
   if (gDnsControllerNameTable != NULL) {\r
     FreeUnicodeStringTable (gDnsControllerNameTable);\r
     gDnsControllerNameTable = NULL;\r