From d7030709801cde01739850a85f156d181554f520 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 26 Jul 2021 13:20:40 -0700 Subject: [PATCH] Fixed bug where pointer wasn't getting NULLed out --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 93f6ebd..3a950c8 100644 --- a/utils.c +++ b/utils.c @@ -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