diff options
author | Rafael Zanella <azraellzanella@gmail.com> | 2013-01-24 12:24:01 -0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2013-07-10 22:34:46 -0700 |
commit | 6cf2e85bd2bf1bb19da2d7fdbd819d8969776e7c (patch) | |
tree | 7dd04953cf8c2095aa4a5bef8a0fef07dbb92be9 | |
parent | c552ca6904f55c5eee40e309e31cf2d4325a84b6 (diff) |
Update example.c
Added a call to redisFree()
Closes #148.
-rw-r--r-- | examples/example.c | 3 |
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; } |