summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRafael Zanella <azraellzanella@gmail.com>2013-01-24 12:24:01 -0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2013-07-10 22:34:46 -0700
commit6cf2e85bd2bf1bb19da2d7fdbd819d8969776e7c (patch)
tree7dd04953cf8c2095aa4a5bef8a0fef07dbb92be9 /examples
parentc552ca6904f55c5eee40e309e31cf2d4325a84b6 (diff)
Update example.c
Added a call to redisFree() Closes #148.
Diffstat (limited to 'examples')
-rw-r--r--examples/example.c3
1 files changed, 3 insertions, 0 deletions
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;
}