Commit 7d996522 authored by not-a-robot[bot]'s avatar not-a-robot[bot]
Browse files

Merge #523

523: Fix leak if setsockopt fails r=badboy
parents 4d8f3fb2 e21c9c67
......@@ -357,6 +357,7 @@ addrretry:
n = 1;
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char*) &n,
sizeof(n)) < 0) {
freeaddrinfo(bservinfo);
goto error;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment