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:
John Baldwin 2024-05-10 09:06:54 -07:00
parent 0ac468c7b6
commit 1662e47d91

View File

@ -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);
}