diff options
author | Mark Nunberg <mnunberg@users.noreply.github.com> | 2018-10-03 06:53:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 06:53:42 -0400 |
commit | 67036ef70c9b332c51fe24489fc9f9cdaa09dbe3 (patch) | |
tree | d0c133ad2b3cc92a43045a61ae0dfe956f464add /hiredis.c | |
parent | 747d78beaa66ef1666de7ea0153f2bc2504b8ee5 (diff) | |
parent | 3cb4fb2395919ff91d29c7ab66634f5211eaca89 (diff) |
Merge pull request #578 from mnunberg/connfix
Proper error reporting for connect failures
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -606,12 +606,14 @@ void redisFree(redisContext *c) { return; if (c->fd > 0) close(c->fd); + sdsfree(c->obuf); redisReaderFree(c->reader); free(c->tcp.host); free(c->tcp.source_addr); free(c->unix_sock.path); free(c->timeout); + free(c->saddr); free(c); } |