From 6a9bd051c439ef66cf00795b3829ca3ceece0497 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 3 Jan 2021 10:58:38 -0800 Subject: 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. --- tests/ipcsupp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/ipcsupp.c') diff --git a/tests/ipcsupp.c b/tests/ipcsupp.c index d5128098..bd751885 100644 --- a/tests/ipcsupp.c +++ b/tests/ipcsupp.c @@ -1,5 +1,5 @@ // -// Copyright 2019 Staysail Systems, Inc. +// Copyright 2021 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2018 Devolutions // @@ -19,7 +19,6 @@ static int num = 0; TestMain("Supplemental IPC", { - atexit(nng_fini); Convey("We can create a dialer and listener", { nng_stream_dialer * d; nng_stream_listener *l; -- cgit v1.2.3-70-g09d2