[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #30799 [Core Tor/Tor]: Fix a small memory leak in nt_service_install() in ntmain.c
#30799: Fix a small memory leak in nt_service_install() in ntmain.c
------------------------------+------------------------------
Reporter: xiaoyinl | Owner: (none)
Type: defect | Status: new
Priority: Low | Component: Core Tor/Tor
Version: Tor: unspecified | Severity: Minor
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
------------------------------+------------------------------
A string buffer `command` is allocated on L559, but it's not freed if
`service_fns.LookupAccountNameA_fn` returns FALSE. The patch I attached
adds `tor_free(command);` in this `else if` branch.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30799>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs