From 7d582d6b499ed30268da033cc17fbde6e7b02a9d Mon Sep 17 00:00:00 2001 From: qwang12 Date: Mon, 21 Jan 2008 14:41:31 +0000 Subject: UEFI HII: Merge UEFI HII support changes from branch. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4600 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/DxeMemoryAllocationLib/MemoryAllocationLib.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'MdePkg/Library/DxeMemoryAllocationLib') diff --git a/MdePkg/Library/DxeMemoryAllocationLib/MemoryAllocationLib.c b/MdePkg/Library/DxeMemoryAllocationLib/MemoryAllocationLib.c index 3e04bb1cba..773797a291 100644 --- a/MdePkg/Library/DxeMemoryAllocationLib/MemoryAllocationLib.c +++ b/MdePkg/Library/DxeMemoryAllocationLib/MemoryAllocationLib.c @@ -1077,3 +1077,17 @@ FreeAlignedPool ( Status = gBS->FreePool (RawAddress); ASSERT_EFI_ERROR (Status); } + + +VOID +EFIAPI +SafeFreePool ( + IN VOID *Buffer + ) +{ + if (Buffer != NULL) { + FreePool (Buffer); + Buffer = NULL; + } +} + -- cgit v1.2.3