]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.c
Refine soma code to make code run safely.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / IScsiTcp4Io.c
index ee734d991427ad6b0d83815db42afe1af1e26fe0..e73a6dd5f78e4bca08b2c3de0ac34d8cb00dc24f 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   The wrap of TCP/IP Socket interface.\r
 \r
-Copyright (c) 2004 - 2007, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2004 - 2009, 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
 http://opensource.org/licenses/bsd-license.php\r
@@ -386,7 +386,7 @@ Tcp4IoTransmit (
 \r
 ON_EXIT:\r
 \r
-  gBS->FreePool (TxData);\r
+  FreePool (TxData);\r
 \r
   return Status;\r
 }\r
@@ -481,7 +481,7 @@ Tcp4IoReceive (
 \r
 ON_EXIT:\r
   Tcp4Io->RxToken.Packet.RxData = NULL;\r
-  gBS->FreePool (Fragment);\r
+  FreePool (Fragment);\r
 \r
   return Status;\r
 }\r