diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index 730d9a6..429239d 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -90,6 +90,8 @@ void remove_node(node_t *node) node_t *get_node(void *pointer) { + if (head == NULL) return NULL; //EMPTY LIST + node_t *buffer = head; while (buffer -> next != NULL) {