[tor-bugs] #7029 [Tor]: some stuff doesn't get freed at exit
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Thu Oct 4 14:00:18 UTC 2012
#7029: some stuff doesn't get freed at exit
------------------------+---------------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: needs_review
Priority: normal | Milestone: Tor: 0.2.4.x-final
Component: Tor | Version:
Keywords: tor-client | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Comment(by nickm):
Reading bug7029 --- it looks like some of these are from 0.2.3? I think
it's worthwhile fixing the 0.2.3 ones in 0.2.3, since we might someday
want to look for a memory leak or something that affects only 0.2.3,
right?
>(Is there a proper way to free the result of an evdns_base_new()?)
evdns_base_free().
>What's the right way to free evtimers that might still be remembered
somewhere inside libevent?
If we allocated them with event_new(), then event_free() should do just
fine. It needs to be called before the event_base_free(), though. I
believe Tor has wrappers for this.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7029#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list