h2load: Fix crash on exit on FreeBSD
This commit is contained in:
parent
d39335829d
commit
60e443b90b
|
@ -101,10 +101,12 @@ Config::Config()
|
|||
unix_addr{} {}
|
||||
|
||||
Config::~Config() {
|
||||
if (base_uri_unix) {
|
||||
delete addrs;
|
||||
} else {
|
||||
freeaddrinfo(addrs);
|
||||
if (addrs) {
|
||||
if (base_uri_unix) {
|
||||
delete addrs;
|
||||
} else {
|
||||
freeaddrinfo(addrs);
|
||||
}
|
||||
}
|
||||
|
||||
if (data_fd != -1) {
|
||||
|
|
Loading…
Reference in New Issue