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