SHARE
TWEET

Untitled

a guest Dec 17th, 2012 25 Never
  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. }
RAW Paste Data
Top