mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-12-16 07:01:32 +03:00
Mayaqua: add new FreeSafe() function which calls Free() and set the pointer's value to NULL
This commit is contained in:
@ -3777,6 +3777,13 @@ void Free(void *addr)
|
||||
InternalFree(tag);
|
||||
}
|
||||
|
||||
// Free and set pointer's value to NULL
|
||||
void FreeSafe(void **addr)
|
||||
{
|
||||
Free(*addr);
|
||||
*addr = NULL;
|
||||
}
|
||||
|
||||
// Check the memtag
|
||||
void CheckMemTag(MEMTAG *tag)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user