Commit d9cc0a70 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix a improbable memory leak.

parent 7653bfc7
......@@ -106,13 +106,12 @@ tcp_keep_probes(void)
return; // XXX: log
assert (i > 0);
s = VSS_listen(ta[0], 10);
if (s < 0)
return; // XXX: log
tcp_probe(s, TCP_KEEPIDLE, "tcp_keepalive_time", 600);
tcp_probe(s, TCP_KEEPCNT, "tcp_keepalive_probes", 5);
tcp_probe(s, TCP_KEEPINTVL, "tcp_keepalive_intvl", 5);
AZ(close(s));
if (s >= 0) {
tcp_probe(s, TCP_KEEPIDLE, "tcp_keepalive_time", 600);
tcp_probe(s, TCP_KEEPCNT, "tcp_keepalive_probes", 5);
tcp_probe(s, TCP_KEEPINTVL, "tcp_keepalive_intvl", 5);
AZ(close(s));
}
free(ta);
}
#endif
......
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