diff --git a/src/chat/misc.c b/src/chat/misc.c index ec78bc2..0bc7942 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -58,6 +58,8 @@ void push_to_list(int connection) void remove_node(node_t *node) { + if (node == NULL) return; //NULL NODE + node_t *buffer_1 = head; node_t *buffer_2; diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index ec51324..3ce46bb 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -55,6 +55,8 @@ void push_to_list(void *pointer, enum POINTER_TYPES type) void remove_node(node_t *node) { + if (node == NULL) return; //NULL NODE + node_t *buffer_1 = head; node_t *buffer_2;