[tor-bugs] #4251 [Tor Hidden Services]: memory leak for hidden service?

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Oct 20 04:08:58 UTC 2011


#4251: memory leak for hidden service?
------------------------------------+---------------------------------------
    Reporter:  arma                 |       Owner:  rransom           
        Type:  defect               |      Status:  closed            
    Priority:  normal               |   Milestone:  Tor: 0.2.2.x-final
   Component:  Tor Hidden Services  |     Version:                    
  Resolution:  fixed                |    Keywords:                    
      Parent:                       |      Points:                    
Actualpoints:                       |  
------------------------------------+---------------------------------------
Changes (by nickm):

  * status:  needs_review => closed
  * resolution:  => fixed


Comment:

 subtle!  I'll merge it.  One question: what is up with the
 {{{
    foo *p = thing->the_foo;
    thing->the_foo = NULL;
    foo_free(p);
 }}}
 pattern?  Why not just
 {{{
    foo_free(thing->the_foo);
    thing->the_foo = NULL;
 }}}
 ?

 It doesn't look bad to me, but I want to understand the point of it.

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


More information about the tor-bugs mailing list