Fixed incorrect resource de-allocation, closes #29
This commit is contained in:
parent
7e8009b45d
commit
fafa828b27
@ -711,12 +711,12 @@ void destroy()
|
|||||||
|
|
||||||
if (p2p_listener) {
|
if (p2p_listener) {
|
||||||
evconnlistener_free(p2p_listener);
|
evconnlistener_free(p2p_listener);
|
||||||
tcp_listener = nullptr;
|
p2p_listener = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dns_base) {
|
if (dns_base) {
|
||||||
evdns_base_free(dns_base, 0);
|
evdns_base_free(dns_base, 0);
|
||||||
ev_base = nullptr;
|
dns_base = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ev_base) {
|
if (ev_base) {
|
||||||
|
Loading…
Reference in New Issue
Block a user