diff --git a/util/kb.c b/util/kb.c index 7d7416762..6426b2e9d 100644 --- a/util/kb.c +++ b/util/kb.c @@ -569,6 +569,8 @@ redis_find (const char *kb_path, const char *key) if (rep != NULL) freeReplyObject (rep); i++; + redisFree (kbr->rctx); + kbr->rctx = NULL; continue; } freeReplyObject (rep);