diff options
author | Waldemar Zimpel <w.zimpel@dev.utilizer.de> | 2024-09-26 03:37:19 +0200 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2024-10-10 09:55:46 -0400 |
commit | 6feaea8fa44d4594388232f4e104a7c656013e19 (patch) | |
tree | 4ded9a86ed8eb13c32d5feff7f7a64bbf0ab48c3 /src/lib/evloop/compat_libevent.h | |
parent | 93df26b11a67423e05c200cd93cba6398b9f2a49 (diff) | |
download | tor-6feaea8fa44d4594388232f4e104a7c656013e19.tar.gz tor-6feaea8fa44d4594388232f4e104a7c656013e19.zip |
Fix: Memory leaks in cpuworker on shutdown
Resources allocated by cpuworker weren't being freed on clean shutdown.
This applies for worker threads, worker thread pool, reply queue, reply
event, ...
Diffstat (limited to 'src/lib/evloop/compat_libevent.h')
-rw-r--r-- | src/lib/evloop/compat_libevent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evloop/compat_libevent.h b/src/lib/evloop/compat_libevent.h index 485f85529f..4ffcc0ae93 100644 --- a/src/lib/evloop/compat_libevent.h +++ b/src/lib/evloop/compat_libevent.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2021, The Tor Project, Inc. */ +/* Copyright (c) 2009-2024, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** @@ -19,6 +19,7 @@ void configure_libevent_logging(void); void suppress_libevent_log_msg(const char *msg); #define tor_event_new event_new +#define tor_event_del event_del #define tor_evtimer_new evtimer_new #define tor_evsignal_new evsignal_new #define tor_evdns_add_server_port(sock, tcp, cb, data) \ |