summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nng.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nng.c b/src/nng.c
index b048194c..d77a05c7 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -667,8 +667,11 @@ nng_thread_create(void **thrp, void (*func)(void *), void *arg)
void
-nng_thread_destroy(void *thr)
+nng_thread_destroy(void *arg)
{
+ nni_thr *thr = arg;
+
nni_thr_fini(thr);
+
NNI_FREE_STRUCT(thr);
}