Browse code

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

(cherry picked from commit ef00062fb3feb051e3e11c62ce3c529579d23f5b)

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