aboutsummaryrefslogtreecommitdiff
path: root/tests/sock.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2019-12-29 10:12:23 -0800
committerGarrett D'Amore <garrett@damore.org>2019-12-29 10:12:23 -0800
commit1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e (patch)
tree247a13ce5bdbbba8bff80954b76057dca8eb4c24 /tests/sock.c
parentaed9697d71798d923443f3fb6297cecf89bc4218 (diff)
downloadnng-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/sock.c')
-rw-r--r--tests/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sock.c b/tests/sock.c
index cf3cc705..b6b981c8 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -82,6 +82,7 @@ test_send_nonblock(void)
TEST_CHECK(nng_sendmsg(s1, msg, NNG_FLAG_NONBLOCK) == NNG_EAGAIN);
TEST_CHECK(testutil_clock() < (now + 100));
TEST_CHECK(nng_close(s1) == 0);
+ nng_msg_free(msg);
}
void