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

This commit is contained in:
Pieter Noordhuis 2010-09-19 20:43:57 +02:00
parent f87625777d
commit 4ec97f5907

1
test.c
View File

@ -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");