mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +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
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue