diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-12-29 10:12:23 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-12-29 10:12:23 -0800 |
| commit | 1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e (patch) | |
| tree | 247a13ce5bdbbba8bff80954b76057dca8eb4c24 /tests/message.c | |
| parent | aed9697d71798d923443f3fb6297cecf89bc4218 (diff) | |
| download | nng-1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e.tar.gz nng-1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e.tar.bz2 nng-1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e.zip | |
fixes #1065 resolver leaks work structures
This includes changes to support setting the sanitizer *correctly*
(the old code CMake stuff didn't quite get it right), and addresses
a number of failures in the test code found by the address sanitizer.
Diffstat (limited to 'tests/message.c')
| -rw-r--r-- | tests/message.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/message.c b/tests/message.c index cc50f542..4dfc9921 100644 --- a/tests/message.c +++ b/tests/message.c @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2019 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 @@ -187,11 +187,12 @@ TestMain("Message Tests", { }); Convey("Message dup copies pipe", { - nng_pipe p = NNG_PIPE_INITIALIZER; + nng_pipe p = NNG_PIPE_INITIALIZER; nng_msg *m2; memset(&p, 0x22, sizeof(p)); nng_msg_set_pipe(msg, p); So(nng_msg_dup(&m2, msg) == 0); + Reset({ nng_msg_free(m2); }); p = nng_msg_get_pipe(m2); So(nng_pipe_id(p) == 0x22222222); }); |
