summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-09-19 20:43:57 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-09-19 20:43:57 +0200
commit4ec97f5907e997e64071a52b6e5db2371ad84ab4 (patch)
tree1765c2296c65c20270427f4d6bc3c41e85abb5d4
parentf87625777de2429c0691e321106b9016d35a4e4b (diff)
Free reply in test.c to make hiredis-test run cleanly on Valgrind
-rw-r--r--test.c1
1 files changed, 1 insertions, 0 deletions
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");