[tor-bugs] #4889 [Tor Client]: Cleanup: use smartlist_add_asprintf() rather than tor_asprintf+smartlist_add()

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Jan 13 14:58:14 UTC 2012


#4889: Cleanup: use smartlist_add_asprintf() rather than
tor_asprintf+smartlist_add()
------------------------+---------------------------------------------------
 Reporter:  nickm       |          Owner:                    
     Type:  defect      |         Status:  needs_review      
 Priority:  normal      |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by nickm):

 On re-review, that part of policy_summarize looks okay to me. It's killing
 the size precomputation for final_size, which is only used when allocating
 result, which is now allocated by tor_asprintf().

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4889#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list