diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2014-09-19 12:48:48 +0200 |
---|---|---|
committer | Salvatore Sanfilippo <antirez@gmail.com> | 2014-09-19 12:48:48 +0200 |
commit | 8f60ee65327445ed8384290b4040685329eb03c5 (patch) | |
tree | d215c07791761073dc700f5a361b355613d2c35f | |
parent | 2602e1b6bc19dc191df0c50cd6502578fe492710 (diff) | |
parent | 537a8845d13509946344d47d6b3bc0be4211c7ac (diff) |
Merge pull request #274 from mattsta/fix-memory-leak
Fix getaddrinfo() memory leak
-rw-r--r-- | net.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -300,6 +300,7 @@ static int _redisContextConnectTcp(redisContext *c, const char *addr, int port, break; } } + freeaddrinfo(bservinfo); if (!bound) { char buf[128]; snprintf(buf,sizeof(buf),"Can't bind socket: %s",strerror(errno)); |