14 lines
170 B
C
Raw Normal View History

2017-04-22 23:08:17 +09:00
#include <string.h>
#include <stdlib.h>
void
freezero(void *ptr, size_t sz)
{
/* This is legal. */
if (ptr == NULL)
return;
explicit_bzero(ptr, sz);
free(ptr);
}