diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-06 14:45:53 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-06 14:45:53 -0700 |
| commit | 3da27f7c9c1077f285f53b1e80a1befffe104770 (patch) | |
| tree | dad07400dced42b061d036c9dd86aaf501592dfc /src/core | |
| parent | 82c70435ec9be9c607de4fbd62d4de9ae7d7c081 (diff) | |
| download | nng-3da27f7c9c1077f285f53b1e80a1befffe104770.tar.gz nng-3da27f7c9c1077f285f53b1e80a1befffe104770.tar.bz2 nng-3da27f7c9c1077f285f53b1e80a1befffe104770.zip | |
Fixes for async resolver, plus a test suite for it.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/aio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index e1d7bdae..c7d2b0b0 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -66,6 +66,10 @@ nni_aio_fini(nni_aio *aio) // At this point the AIO is done. nni_cv_fini(&aio->a_cv); nni_mtx_fini(&aio->a_lk); + + if ((aio->a_naddrs != 0) && (aio->a_addrs != NULL)) { + NNI_FREE_STRUCTS(aio->a_addrs, aio->a_naddrs); + } } |
