Fixed incorrect resource de-allocation, closes #29

This commit is contained in:
Exynox 2024-08-24 22:02:33 +03:00
parent 7e8009b45d
commit fafa828b27

View File

@ -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) {