From b0822d8768cbace0792b61ca3f86d92a541d9575 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 6 Jan 2017 20:09:11 -0800 Subject: Fix for valgrind leak. --- tests/sock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/sock.c b/tests/sock.c index cc7e56b0..acc4c437 100644 --- a/tests/sock.c +++ b/tests/sock.c @@ -21,6 +21,10 @@ TestMain("Socket Operations", { So(rv == 0); So(sock != NULL); + Reset({ + nng_close(sock); + }) + Convey("And we can shut it down", { rv = nng_shutdown(sock); So(rv == 0); @@ -28,10 +32,6 @@ TestMain("Socket Operations", { So(rv == NNG_ECLOSED); }) - Reset({ - nng_close(sock); - }) - Convey("It's type is still proto", { So(nng_protocol(sock) == NNG_PROTO_PAIR); }) -- cgit v1.2.3-70-g09d2