fixed deallocation order in why2_communicate_thread

This commit is contained in:
Václav Šmejkal 2023-02-22 10:47:14 +01:00
parent 2c051f2cb2
commit 66add23df5
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -155,9 +155,9 @@ void *why2_communicate_thread(void *arg)
printf("User exited.\t%d\n", connection.connection);
//DEALLOCATION
remove_node(get_node(connection.connection));
close(*((int*) arg));
why2_deallocate(received);
remove_node(get_node(connection.connection));
close(connection.connection);
return NULL;
}