revert last commit (why2-memory in chat-misc)

for some reason it was causing segfault
This commit is contained in:
Václav Šmejkal 2023-03-24 19:23:16 +01:00
parent f0574cae12
commit 0c285690eb
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -43,7 +43,7 @@ node_t *head = NULL;
void push_to_list(int connection, pthread_t thread) void push_to_list(int connection, pthread_t thread)
{ {
//CREATE NODE //CREATE NODE
node_t *new_node = why2_malloc(sizeof(node_t)); node_t *new_node = malloc(sizeof(node_t));
node_t *buffer = head; node_t *buffer = head;
new_node -> connection = connection; new_node -> connection = connection;
@ -93,7 +93,7 @@ void remove_node(node_t *node)
} }
//DEALLOCATION //DEALLOCATION
why2_deallocate(node); free(node);
} }
node_t *get_node(int connection) node_t *get_node(int connection)