From 3da27f7c9c1077f285f53b1e80a1befffe104770 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 6 Jul 2017 14:45:53 -0700 Subject: Fixes for async resolver, plus a test suite for it. --- src/core/aio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') 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); + } } -- cgit v1.2.3-70-g09d2