mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 00:14:42 +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)
|
void CDECL free(void* ptr)
|
||||||
{
|
{
|
||||||
|
if(ptr == NULL) return;
|
||||||
HeapFree(GetProcessHeap(),0,ptr);
|
HeapFree(GetProcessHeap(),0,ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue