mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
make ks_pool_free appear take double pointer
This commit is contained in:
committed by
Mike Jerris
parent
73e4c22255
commit
d2f04e2133
@@ -185,7 +185,7 @@ static void *thread_test_function_atatched(ks_thread_t *thread, void *data)
|
||||
|
||||
for (i = 0; i < LOOP_COUNT; i++) {
|
||||
if (last_mem) {
|
||||
ks_pool_safe_free(thread->pool, last_mem);
|
||||
ks_pool_free(thread->pool, &last_mem);
|
||||
}
|
||||
mem = ks_pool_alloc(thread->pool, 1024);
|
||||
last_mem = mem;
|
||||
@@ -246,7 +246,7 @@ static void check_thread_priority(void)
|
||||
ok( ks_thread_priority(thread_p) == KS_PRI_IMPORTANT );
|
||||
end_todo;
|
||||
|
||||
ks_pool_free(pool, thread_p);
|
||||
ks_pool_free(pool, &thread_p);
|
||||
}
|
||||
|
||||
static void join_threads(void)
|
||||
|
Reference in New Issue
Block a user