iscsid(8): fix memory leak by freeing the 'addr'

Reviewed By:	mav
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D27328
This commit is contained in:
Edward Tomasz Napierala 2020-12-29 14:53:03 +00:00
parent 7db3d97e0f
commit a7972b4904

View File

@ -150,6 +150,8 @@ resolve_addr(const struct connection *conn, const char *address,
log_errx(1, "getaddrinfo for %s failed: %s",
address, gai_strerror(error));
}
free(addr);
}
static struct connection *