mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
[CRT]
- 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:
parent
def6dd986d
commit
2c48227400
|
@ -298,6 +298,7 @@ void* CDECL calloc(size_t size, size_t count)
|
||||||
*/
|
*/
|
||||||
void CDECL free(void* ptr)
|
void CDECL free(void* ptr)
|
||||||
{
|
{
|
||||||
|
if(ptr == NULL) return;
|
||||||
HeapFree(GetProcessHeap(),0,ptr);
|
HeapFree(GetProcessHeap(),0,ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue