[tor-bugs] #30799 [Core Tor/Tor]: Fix a small memory leak in nt_service_install() in ntmain.c
    Tor Bug Tracker & Wiki 
    blackhole at torproject.org
       
    Fri Jun  7 09:37:24 UTC 2019
    
    
  
#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
    
    
More information about the tor-bugs
mailing list