aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/aio.c')
-rw-r--r--src/core/aio.c4
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);
+ }
}