diff options
author | not-a-robot[bot] <not-a-robot[bot]@users.noreply.github.com> | 2017-07-15 14:05:56 +0000 |
---|---|---|
committer | not-a-robot[bot] <not-a-robot[bot]@users.noreply.github.com> | 2017-07-15 14:05:56 +0000 |
commit | 7d99652241a4609409f89f6a6fb4b24944a5accf (patch) | |
tree | ae7e298cd4cabe06a3cdc6b1f634bfb8a98d0246 | |
parent | 4d8f3fb207aa63a44999f78bc089a19c846eb9a9 (diff) | |
parent | e21c9c6729b8cd440fb97cf30b5db6144260de12 (diff) |
Merge #523
523: Fix leak if setsockopt fails r=badboy
-rw-r--r-- | net.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -357,6 +357,7 @@ addrretry: n = 1; if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char*) &n, sizeof(n)) < 0) { + freeaddrinfo(bservinfo); goto error; } } |