From 6cf2e85bd2bf1bb19da2d7fdbd819d8969776e7c Mon Sep 17 00:00:00 2001 From: Rafael Zanella Date: Thu, 24 Jan 2013 12:24:01 -0200 Subject: Update example.c Added a call to redisFree() Closes #148. --- examples/example.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/example.c b/examples/example.c index c135fd0..8b2e7f7 100644 --- a/examples/example.c +++ b/examples/example.c @@ -69,5 +69,8 @@ int main(void) { } freeReplyObject(reply); + /* Disconnects and frees the context */ + redisFree(c); + return 0; } -- cgit v1.2.3