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:
parent
7db3d97e0f
commit
a7972b4904
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user