fixed deallocation order in why2_communicate_thread
This commit is contained in:
parent
2c051f2cb2
commit
66add23df5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user