Fixed bug where pointer wasn't getting NULLed out

This commit is contained in:
Bruce Hill 2021-07-26 13:20:40 -07:00
parent f5b9acc05c
commit d703070980

View File

@ -153,7 +153,7 @@ void xfree(void *p)
if (*(void**)p == NULL)
errx(EXIT_FAILURE, "attempt to free(NULL)");
free(*(void**)p);
p = NULL;
*((void**)p) = NULL;
}
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1