From 4ec97f5907e997e64071a52b6e5db2371ad84ab4 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Sun, 19 Sep 2010 20:43:57 +0200 Subject: Free reply in test.c to make hiredis-test run cleanly on Valgrind --- test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test.c b/test.c index 2b64fa9..4c7cac1 100644 --- a/test.c +++ b/test.c @@ -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"); -- cgit v1.2.3