Skip to content

Commit

Permalink
Close connection if the key was not found, before continuing search i…
Browse files Browse the repository at this point in the history
…n the next kb.
  • Loading branch information
jjnicola authored and kroosec committed Apr 11, 2019
1 parent 3f82336 commit edbdd5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/kb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edbdd5d

Please sign in to comment.