From ba6aacb1b4694eaae9495023d2b35c0e79fbf0b3 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 22 Feb 2023 10:54:41 +0100 Subject: [PATCH] fixed deallocation order in why2_communicate_thread, again --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 2eb40c0..a0a646f 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -156,8 +156,8 @@ void *why2_communicate_thread(void *arg) //DEALLOCATION why2_deallocate(received); - remove_node(get_node(connection.connection)); close(connection.connection); + remove_node(get_node(connection.connection)); return NULL; }