diff options
Diffstat (limited to 'tests/scalability.c')
| -rw-r--r-- | tests/scalability.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/scalability.c b/tests/scalability.c index 1cbbd961..0cff2243 100644 --- a/tests/scalability.c +++ b/tests/scalability.c @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -43,14 +43,6 @@ serve(void *arg) nng_close(rep); } -void -stop(void) -{ - nng_closeall(); - nng_thread_destroy(server); - nng_fini(); -} - int openclients(nng_socket *clients, int num) { @@ -97,8 +89,6 @@ Main({ nng_socket *clients; int * results; - atexit(stop); - clients = calloc(nclients, sizeof(nng_socket)); results = calloc(nclients, sizeof(int)); @@ -122,6 +112,9 @@ Main({ }); }); + nng_close(rep); + nng_thread_destroy(server); + free(clients); free(results); }) |
