Module: kamailio
Branch: master
Commit: ef00062fb3feb051e3e11c62ce3c529579d23f5b
URL:
https://github.com/kamailio/kamailio/commit/ef00062fb3feb051e3e11c62ce3c529…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-07-04T14:08:58+02:00
ndb_redis: clean up response on moved reply with cluster mode on
---
Modified: src/modules/ndb_redis/redis_client.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ef00062fb3feb051e3e11c62ce3c529…
Patch:
https://github.com/kamailio/kamailio/commit/ef00062fb3feb051e3e11c62ce3c529…
---
diff --git a/src/modules/ndb_redis/redis_client.c b/src/modules/ndb_redis/redis_client.c
index aad0b6c1b62..c26154930b9 100644
--- a/src/modules/ndb_redis/redis_client.c
+++ b/src/modules/ndb_redis/redis_client.c
@@ -1165,6 +1165,7 @@ redisReply* redisc_exec_argv(redisc_server_t *rsrv, int argc, const
char **argv,
if(res)
{
if (check_cluster_reply(res, &rsrv)) {
+ freeReplyObject(res);
goto again;
}
return res;
@@ -1175,6 +1176,7 @@ redisReply* redisc_exec_argv(redisc_server_t *rsrv, int argc, const
char **argv,
res = redisCommandArgv(rsrv->ctxRedis, argc, argv, argvlen);
if (res) {
if (check_cluster_reply(res, &rsrv)) {
+ freeReplyObject(res);
goto again;
}
}