Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 17th, 2012  |  syntax: None  |  size: 0.20 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void redisFree(redisContext *c) {
  2.     if (c->fd > 0)
  3.         close(c->fd);
  4.     if (c->obuf != NULL)
  5.         sdsfree(c->obuf);
  6.     if (c->reader != NULL)
  7.         redisReaderFree(c->reader);
  8.     free(c);
  9. }
clone this paste RAW Paste Data