diff --git a/src/chat/misc.c b/src/chat/misc.c index 1a22038..060ee5b 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -43,7 +43,7 @@ node_t *head = NULL; void push_to_list(int connection, pthread_t thread) { //CREATE NODE - node_t *new_node = malloc(sizeof(node_t)); + node_t *new_node = why2_malloc(sizeof(node_t)); node_t *buffer = head; new_node -> connection = connection; @@ -93,7 +93,7 @@ void remove_node(node_t *node) } //DEALLOCATION - free(node); + why2_deallocate(node); } node_t *get_node(int connection)