From a1410651898b98ba0f3138dacf42968a72703b29 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 25 Feb 2024 12:25:29 +0100 Subject: [PATCH] addded null check to why2_deallocate --- src/core/lib/utils/memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index 429c603..946d006 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -191,6 +191,8 @@ void *why2_opendir(char *name) void why2_deallocate(void *pointer) { + if (pointer == NULL) return; //DEALLOCATING NULL + //VARIABLES node_t *node = get_node(pointer);