[tor-bugs] #17779 [Tor]: Memory leak in routerkeys.c
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Dec 8 13:26:08 UTC 2015
#17779: Memory leak in routerkeys.c
-----------------------------+--------------------------------
Reporter: cypherpunks | Owner:
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Tor | Version: Tor: 0.2.7.2-alpha
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Sponsor:
-----------------------------+--------------------------------
The `rsa_ed_crosscert` variable is assigned a cross-certification object
in the `load_ed_keys` function but is never freed. Secondly, the variable
is only used by the `get_master_rsa_crosscert` function which, in turn, is
not used by the current code base.
My suggestion is to remove the `rsa_ed_crosscert` variable and the
`get_master_rsa_crosscert` function to fix the memory leak (unless they
have some future use-case).
The variable and function were added in
3bee74c6d115131f4850a07a5c12db21ae6f3193.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17779>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list