- C standard for free says "if pointer is NULL, no action is taken".
 - MSDN for HeapFree says "if pointer is NULL, behavior is undefined".
Thanks to Thomas for teaching wine guys how to read.

svn path=/trunk/; revision=55797
This commit is contained in:
Jérôme Gardou 2012-02-21 22:08:24 +00:00
parent def6dd986d
commit 2c48227400

View file

@ -298,6 +298,7 @@ void* CDECL calloc(size_t size, size_t count)
*/
void CDECL free(void* ptr)
{
if(ptr == NULL) return;
HeapFree(GetProcessHeap(),0,ptr);
}