diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-01-03 10:58:38 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-01-03 15:03:15 -0800 |
| commit | 6a9bd051c439ef66cf00795b3829ca3ceece0497 (patch) | |
| tree | f0c30c7c3d9c6ceb38ea3bd2175f07217df1f24c /tests/tcp6.c | |
| parent | f82096d39f21f30ac11fcf1c65a5b25e85691eae (diff) | |
| download | nng-6a9bd051c439ef66cf00795b3829ca3ceece0497.tar.gz nng-6a9bd051c439ef66cf00795b3829ca3ceece0497.tar.bz2 nng-6a9bd051c439ef66cf00795b3829ca3ceece0497.zip | |
fixes #1401 valgrind reports leaks in all tests
This arranges for nng_fini to be called via atexit in the test
version of the library. It also cleans up some of the actual
tests to reduce extraneous (and in some cases incorrect) calls
to nng_fini.
Diffstat (limited to 'tests/tcp6.c')
| -rw-r--r-- | tests/tcp6.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/tcp6.c b/tests/tcp6.c index 9b3b0d4b..ecc55a46 100644 --- a/tests/tcp6.c +++ b/tests/tcp6.c @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. <info@staystail.tech> +// Copyright 2021 Staysail Systems, Inc. <info@staystail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -92,6 +92,4 @@ TestMain("TCP (IPv6) Transport", { So(nng_dial(s1, "tcp://::1:5055", NULL, 0) == NNG_EADDRINVAL); So(nng_dial(s1, "tcp://[::1]", NULL, 0) == NNG_EADDRINVAL); }); - - nng_fini(); }) |
