From 527a07c6b632f6991102d4fd08ac1f5f962ddfdf Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Fri, 21 Mar 2025 11:59:38 +0000 Subject: fix aio_reap_list use of nni_aio_free() pointer to incorrect function type UBSAN warning --- src/core/aio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/aio.h') diff --git a/src/core/aio.h b/src/core/aio.h index e0b5a388..a1b06e1d 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -44,6 +44,7 @@ extern nng_err nni_aio_alloc(nni_aio **, nni_cb, void *arg); // This must only be called on an object that was allocated // with nni_aio_allocate. extern void nni_aio_free(nni_aio *aio); +extern void nni_aio_free_cb(void *aio); // nni_aio_stop cancels any unfinished I/O, running completion callbacks, // but also prevents any new operations from starting (nni_aio_start will -- cgit v1.2.3-70-g09d2