summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-07-28 01:43:41 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-07-28 01:43:41 +0000
commitad108abec9975a32aec9776acd6125fb159f267a (patch)
tree9ae18a1939118d5d634716528a01b70f124d6863 /MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
parent116b142d869c1a37893ab435045e38a7881dd18d (diff)
downloadedk2-ad108abec9975a32aec9776acd6125fb159f267a.tar.gz
edk2-ad108abec9975a32aec9776acd6125fb159f267a.tar.bz2
edk2-ad108abec9975a32aec9776acd6125fb159f267a.zip
Roll back change r10696, because new update on r10700 and r10701 handles this issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10705 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/DxeNetLib/DxeNetLib.c')
-rw-r--r--MdeModulePkg/Library/DxeNetLib/DxeNetLib.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
index 4bd84c4de7..c055db2b77 100644
--- a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
+++ b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
@@ -185,11 +185,7 @@ SyslogLocateSnp (
Snp = NULL;
}
- //
- // Handles is allocated by gBS AllocatePool() service.
- // So, gBS FreePool() service is used to free Handles.
- //
- gBS->FreePool (Handles);
+ FreePool (Handles);
return Snp;
}
@@ -1642,11 +1638,7 @@ NetGetChildHandle (
// Found item matched gEfiNicIp4ConfigVariableGuid
//
*ChildHandle = Handles[Index];
- //
- // Handles is allocated by gBS AllocatePool() service.
- // So, gBS FreePool() service is used to free Handles.
- //
- gBS->FreePool (Handles);
+ FreePool (Handles);
return EFI_SUCCESS;
}
}
@@ -1655,11 +1647,7 @@ NetGetChildHandle (
}
}
- //
- // Handles is allocated by gBS AllocatePool() service.
- // So, gBS FreePool() service is used to free Handles.
- //
- gBS->FreePool (Handles);
+ FreePool (Handles);
return Status;
}