Browse code

ndb_redis: clean up response on moved reply with cluster mode on

(cherry picked from commit ef00062fb3feb051e3e11c62ce3c529579d23f5b)
(cherry picked from commit bc1e222ea3375dc52dab135016af7d73712a05f1)
(cherry picked from commit 18d744a822bc5b385e38810bc903006048f5957f)

Daniel-Constantin Mierla authored on 04/07/2022 12:08:27
Showing 1 changed files
... ...
@@ -1163,6 +1163,7 @@ again:
1163 1163
 	if(res)
1164 1164
 	{
1165 1165
 		if (check_cluster_reply(res, &rsrv)) {
1166
+			freeReplyObject(res);
1166 1167
 			goto again;
1167 1168
 		}
1168 1169
 		return res;
... ...
@@ -1173,6 +1174,7 @@ again:
1173 1174
 		res = redisCommandArgv(rsrv->ctxRedis, argc, argv, argvlen);
1174 1175
 		if (res) {
1175 1176
 			if (check_cluster_reply(res, &rsrv)) {
1177
+				freeReplyObject(res);
1176 1178
 				goto again;
1177 1179
 			}
1178 1180
 		}