diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-06 20:09:11 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-06 20:09:11 -0800 |
| commit | b0822d8768cbace0792b61ca3f86d92a541d9575 (patch) | |
| tree | 13b0b036db6257aa26fbcd00959b02dba5073c4c /tests/sock.c | |
| parent | e1d963b2d35dac0e0332a8654befdb327dc0094c (diff) | |
| download | nng-b0822d8768cbace0792b61ca3f86d92a541d9575.tar.gz nng-b0822d8768cbace0792b61ca3f86d92a541d9575.tar.bz2 nng-b0822d8768cbace0792b61ca3f86d92a541d9575.zip | |
Fix for valgrind leak.
Diffstat (limited to 'tests/sock.c')
| -rw-r--r-- | tests/sock.c | 8 |
1 files 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); }) |
