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

+1 -1
View File
@@ -49,7 +49,7 @@ KS_DECLARE(void) ks_dht_endpoint_destroy(ks_dht_endpoint_t **endpoint)
ep = *endpoint;
if (ep->sock != KS_SOCK_INVALID) ks_socket_close(&ep->sock);
ks_pool_free(ep->pool, ep);
ks_pool_free(ep->pool, &ep);
*endpoint = NULL;
}