mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 08:43:23 +00:00
nvmecontrol: Free the addrinfo list when failing to open a TCP socket
Reported by: Coverity Scan CID: 1545048 Sponsored by: Chelsio Communications
This commit is contained in:
parent
0ac468c7b6
commit
1662e47d91
@ -168,6 +168,7 @@ tcp_qpair_params(struct nvmf_qpair_params *params, int adrfam,
|
||||
return (true);
|
||||
}
|
||||
warn("Failed to connect to controller at %s:%s", address, port);
|
||||
freeaddrinfo(list);
|
||||
return (false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user