From c59f6dcebe6d15f502f9df839ba609b6a6d3be67 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Thu, 30 Oct 2008 09:17:01 +0000 Subject: [PATCH] add info for removal of SafeFreePool. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6309 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/ChangeLog.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MdePkg/ChangeLog.txt b/MdePkg/ChangeLog.txt index 30c8bf7c96..001c71543e 100644 --- a/MdePkg/ChangeLog.txt +++ b/MdePkg/ChangeLog.txt @@ -196,3 +196,13 @@ Possible Impacts: Customer's module that reference GetPeiServicesTablePointer in PeiServicesTablePointer library may need to updated. Otherwise a build break (mismatch of data type) may occur. +EDK_6307: Non-Compatible: qwang12 + +Remove SafeFreePool from MemoryAllocationLib as this API's name is misleading. Its implementation only check if a pointer is NULL. If a garbage pointer is passed in, the gBS->FreePool will still ASSERT in debug build and return error code. + +It is recommended that module writer should keep track how a pointer is allocated and free it after use. + +Possible Impacts: + Customer's module that reference SafeFreePool need to updated. Otherwise + a build break may occur. +