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>2019-01-09 11:43:19 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-01-09 11:43:19 +0300
commite98f51165bba319e27003af1a21022cffcc285de (patch)
tree1bb8d85723f1cd4442996dc6ed8515811b954bdf /library.c
parentabb79ccb8385da07aeb815acf8550c41171ce0c7 (diff)
Use zend_string for pipeline_cmd
Diffstat (limited to 'library.c')
-rw-r--r--library.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/library.c b/library.c
index d3278a87..79015d4b 100644
--- a/library.c
+++ b/library.c
@@ -1724,7 +1724,6 @@ redis_sock_create(char *host, int host_len, unsigned short port,
redis_sock->current = NULL;
redis_sock->pipeline_cmd = NULL;
- redis_sock->pipeline_len = 0;
redis_sock->err = NULL;
@@ -2104,7 +2103,7 @@ PHP_REDIS_API void redis_free_socket(RedisSock *redis_sock)
zend_string_release(redis_sock->prefix);
}
if (redis_sock->pipeline_cmd) {
- efree(redis_sock->pipeline_cmd);
+ zend_string_release(redis_sock->pipeline_cmd);
}
if (redis_sock->err) {
zend_string_release(redis_sock->err);