修改maat_json笔误,修复redis busy时reply没有释放的bug。

This commit is contained in:
zhengchao
2017-09-10 18:30:44 +08:00
parent 9396bb9e63
commit 819d346b31
4 changed files with 19 additions and 15 deletions

View File

@@ -368,6 +368,8 @@ int get_rm_key_list(unsigned int version,redisContext *c,struct serial_rule_t**
if(reply->type==REDIS_REPLY_NIL||reply->type==REDIS_REPLY_ERROR)
{
MESA_handle_runtime_log(logger, RLOG_LV_FATAL, maat_redis_monitor,"GET MAAT_VERSION failed, maybe Redis is busy.");
freeReplyObject(reply);
reply=NULL;
return -1;
}
}