Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2018-05-31 11:02:39 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2018-05-31 11:24:28 +0300
commit28ec432247f597216846593d62b21e2eef8461c5 (patch)
tree01dd9f4b15bae3339de21d5ce8158be5a44d9afa /cluster_library.h
parent97bb6bd85e3fa38dbb13b97c50bd315490265a80 (diff)
Issue #1358
Use `cluster_free` in `free_cluster_context` to free cluster object. Call `cluster_disconnect` before destroying cluster object.
Diffstat (limited to 'cluster_library.h')
-rw-r--r--cluster_library.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.h b/cluster_library.h
index b3abd7e1..2ac2c796 100644
--- a/cluster_library.h
+++ b/cluster_library.h
@@ -368,7 +368,7 @@ PHP_REDIS_API int cluster_send_slot(redisCluster *c, short slot, char *cmd,
PHP_REDIS_API redisCluster *cluster_create(double timeout, double read_timeout,
int failover, int persistent);
-PHP_REDIS_API void cluster_free(redisCluster *c);
+PHP_REDIS_API void cluster_free(redisCluster *c, int free_ctx TSRMLS_DC);
PHP_REDIS_API int cluster_init_seeds(redisCluster *c, HashTable *ht_seeds);
PHP_REDIS_API int cluster_map_keyspace(redisCluster *c TSRMLS_DC);
PHP_REDIS_API void cluster_free_node(redisClusterNode *node);