make ks_pool_free appear take double pointer

This commit is contained in:
Anthony Minessale authored and Mike Jerris committed 2017-01-25 14:59:36 -06:00
1 parent 73e4c22255
commit d2f04e2133
20 files changed
+83 -74

No files matched your search

+3 -3
View File
@@ -93,7 +93,7 @@ KS_DECLARE(ks_status_t) ks_mutex_destroy(ks_mutex_t **mutexP)
#endif
free(mutex);
} else {
ks_pool_free(mutex->pool, (void *)mutex);
ks_pool_free(mutex->pool, &mutex);
}
return KS_STATUS_SUCCESS;
@@ -422,7 +422,7 @@ KS_DECLARE(ks_status_t) ks_cond_destroy(ks_cond_t **cond)
*cond = NULL;
return ks_pool_free(condp->pool, condp);
return ks_pool_free(condp->pool, &condp);
}
@@ -655,7 +655,7 @@ KS_DECLARE(ks_status_t) ks_rwl_destroy(ks_rwl_t **rwlock)
*rwlock = NULL;
return ks_pool_free(rwlockp->pool, rwlockp);
return ks_pool_free(rwlockp->pool, &rwlockp);
}