Skip to content

Commit

Permalink
Update example.c
Browse files Browse the repository at this point in the history
Added a call to redisFree()

Closes redis#148.
  • Loading branch information
zanella authored and pietern committed Jul 11, 2013
1 parent c552ca6 commit 6cf2e85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@ int main(void) {
}
freeReplyObject(reply);

/* Disconnects and frees the context */
redisFree(c);

return 0;
}

0 comments on commit 6cf2e85

Please sign in to comment.