Commit 60e443b9 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: Fix crash on exit on FreeBSD

parent d3933582
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment