From d6c557dd53bffe96f409e3202a515aa0a9baebcf Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 15 Oct 2018 17:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dget=5Finc=5Fkey=5Flist?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_command.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entry/Maat_command.cpp b/src/entry/Maat_command.cpp index fffa5eb..ac96c4c 100644 --- a/src/entry/Maat_command.cpp +++ b/src/entry/Maat_command.cpp @@ -363,6 +363,7 @@ int get_inc_key_list(long long instance_version, long long target_version, redis rule_num=reply->elements; if(reply->elements==0) { + freeReplyObject(reply); return 0; } @@ -382,7 +383,7 @@ int get_inc_key_list(long long instance_version, long long target_version, redis { MESA_handle_runtime_log(logger, RLOG_LV_INFO, maat_redis_monitor, "Noncontinuous VERSION Redis: %lld MAAT: %lld.",nearest_rule_version,instance_version); - + freeReplyObject(reply); return -1; } s_rule=(struct serial_rule_t*)calloc(reply->elements,sizeof(struct serial_rule_t));