diff --git a/libs/libks/test/test_thread_pools.c b/libs/libks/test/test_thread_pools.c index 4e8b73d786..4934357139 100644 --- a/libs/libks/test/test_thread_pools.c +++ b/libs/libks/test/test_thread_pools.c @@ -18,7 +18,7 @@ static void *test1_thread(ks_thread_t *thread, void *data) ks_log(KS_LOG_DEBUG, "Thread %d\n", mydata->i); ks_sleep(100000); - ks_pool_free(mydata->pool, mydata); + ks_pool_free(mydata->pool, &mydata); return NULL; }