Add missing freeReplyObject calls

refs #4991
This commit is contained in:
Gunnar Beutner 2017-03-16 15:09:21 +01:00
parent 62c1a64788
commit dd7862f08a
1 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,8 @@ void RedisWriter::UpdateSubscriptions(void)
Log(LogInformation, "RedisWriter")
<< "SCAN " << cursor << " MATCH icinga:subscription:* COUNT 1000: " << reply->str;
freeReplyObject(reply);
return;
}
@ -174,6 +176,8 @@ void RedisWriter::UpdateSubscriptions(void)
Log(LogInformation, "RedisWriter")
<< "GET " << keyReply->str << ": " << vreply->str;
freeReplyObject(vreply);
continue;
}
@ -282,6 +286,8 @@ void RedisWriter::HandleEvent(const Dictionary::Ptr& event)
Log(LogInformation, "RedisWriter")
<< "LPUSH icinga:event:" << kv.first << " " << body << ": " << reply->str;
freeReplyObject(reply);
continue;
}