mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Accept NULL pointer.
This commit is contained in:
parent
d720a1487b
commit
9583878a7b
@ -24,6 +24,8 @@
|
||||
void
|
||||
freezero(void *ptr, size_t size)
|
||||
{
|
||||
memset(ptr, 0, size);
|
||||
free(ptr);
|
||||
if (ptr != NULL) {
|
||||
memset(ptr, 0, size);
|
||||
free(ptr);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user