summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornot-a-robot[bot] <not-a-robot[bot]@users.noreply.github.com>2017-07-15 14:05:56 +0000
committernot-a-robot[bot] <not-a-robot[bot]@users.noreply.github.com>2017-07-15 14:05:56 +0000
commit7d99652241a4609409f89f6a6fb4b24944a5accf (patch)
treeae7e298cd4cabe06a3cdc6b1f634bfb8a98d0246
parent4d8f3fb207aa63a44999f78bc089a19c846eb9a9 (diff)
parente21c9c6729b8cd440fb97cf30b5db6144260de12 (diff)
Merge #523
523: Fix leak if setsockopt fails r=badboy
-rw-r--r--net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net.c b/net.c
index 024f645..d332db1 100644
--- a/net.c
+++ b/net.c
@@ -357,6 +357,7 @@ addrretry:
n = 1;
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char*) &n,
sizeof(n)) < 0) {
+ freeaddrinfo(bservinfo);
goto error;
}
}