kadmind: fix leak

This commit is contained in:
Nicolas Williams
2016-02-29 17:06:01 -06:00
parent 69eb97a92d
commit 644b45939e

View File

@@ -264,6 +264,7 @@ start_server(krb5_context contextp, const char *port_str)
if(tmp == NULL) {
krb5_warnx(contextp, "failed to reallocate %lu bytes",
(unsigned long)(num_socks + i) * sizeof(*socks));
freeaddrinfo(ai);
continue;
}
socks = tmp;