running garbage collector at the end of client & server run
This commit is contained in:
parent
7ffb9b1d9c
commit
72fcc4c3e5
@ -29,6 +29,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#include <why2/chat/flags.h>
|
||||
#include <why2/chat/misc.h>
|
||||
|
||||
#include <why2/memory.h>
|
||||
#include <why2/misc.h>
|
||||
|
||||
int main(void)
|
||||
@ -102,5 +103,7 @@ int main(void)
|
||||
free(return_line);
|
||||
}
|
||||
|
||||
why2_clean_memory(""); //RUN GARBAGE COLLECTOR
|
||||
|
||||
return 0;
|
||||
}
|
@ -29,6 +29,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#include <why2/chat/flags.h>
|
||||
#include <why2/chat/misc.h>
|
||||
|
||||
#include <why2/memory.h>
|
||||
#include <why2/misc.h>
|
||||
|
||||
int main(void)
|
||||
@ -75,5 +76,7 @@ int main(void)
|
||||
close(listen_socket);
|
||||
pthread_cancel(thread);
|
||||
|
||||
why2_clean_memory(""); //RUN GARBAGE COLLECTOR
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user