audk/StdLib/LibC/StdLib
darylm503 565b3c807c StdLib/LibC/StdLib/Malloc.c: Make the free() function conform to the ISO/IEC 9899 (C95) specification.
The C95 specification states: "The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation.  If ptr is a null pointer, no action occurs".  The UEFI FreePool() function, which the StdLib implementation of free() uses, does not make this check.  This fix adds a check for null to the free() function such that if the pointer argument is NULL, nothing is done.

Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: erik.c.bjorge@intel.com


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13739 6f19259b-4bc3-4df7-8a09-765794883524
2012-09-24 22:44:03 +00:00
..
Bsearch.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
Environs.c Add Socket Libraries. 2011-07-30 00:30:44 +00:00
Malloc.c StdLib/LibC/StdLib/Malloc.c: Make the free() function conform to the ISO/IEC 9899 (C95) specification. 2012-09-24 22:44:03 +00:00
NumericInt.c Add Socket Libraries. 2011-07-30 00:30:44 +00:00
Qsort.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
Rand.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
StdLib.inf Add Socket Libraries. 2011-07-30 00:30:44 +00:00
Xabs.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
Xdiv.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
realpath.c Add Socket Libraries. 2011-07-30 00:30:44 +00:00
setprogname.c StdLib: Revise the meaning of several feature macros. 2011-11-03 00:01:24 +00:00
strtoimax.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
strtoumax.c Add Socket Libraries. 2011-07-30 00:30:44 +00:00