Commit 4ec97f59 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Free reply in test.c to make hiredis-test run cleanly on Valgrind

parent f8762577
......@@ -43,6 +43,7 @@ int main(void) {
reply = redisCommand(fd,"PING");
test_cond(reply->type == REDIS_REPLY_STRING &&
strcasecmp(reply->reply,"pong") == 0)
freeReplyObject(reply);
/* Switch to DB 9 for testing, now that we know we can chat. */
reply = redisCommand(fd,"SELECT 9");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment