Add missing free call

refs #4991
This commit is contained in:
Gunnar Beutner 2017-03-13 11:34:38 +01:00
parent 645e260f9b
commit a21da31ef6
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ void RedisWriter::UpdateSubscriptions(void)
redisReply *vreply = reinterpret_cast<redisReply *>(redisCommand(m_Context, "GET %s", keyReply->str));
if (!vreply) {
freeReplyObject(reply);
redisFree(m_Context);
m_Context = NULL;
return;