mirror of git://anongit.mindrot.org/openssh.git
freezero should check for NULL.
This commit is contained in:
parent
680321f3eb
commit
f6dc2ba3c9
|
@ -23,6 +23,8 @@
|
|||
void
|
||||
freezero(void *ptr, size_t sz)
|
||||
{
|
||||
if (ptr == NULL)
|
||||
return;
|
||||
explicit_bzero(ptr, sz);
|
||||
free(ptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue