[tor-bugs] #24337 [Core Tor/Tor]: Every _free() function should be a macro that sets the corresponding pointer to NULL.

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Nov 21 14:56:49 UTC 2017


#24337: Every _free() function should be a macro that sets the corresponding
pointer to NULL.
--------------------------+------------------------------------
 Reporter:  nickm         |          Owner:  nickm
     Type:  enhancement   |         Status:  needs_review
 Priority:  Medium        |      Milestone:  Tor: 0.3.3.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:  Sponsor8-can
--------------------------+------------------------------------
Changes (by nickm):

 * sponsor:   => Sponsor8-can


Comment:

 My macro_free branch is now ready for review.

 It only hits the free functions defined in .h files.

 I expect that when we merge this, we'll need to regenerate the patches
 that make the macros uppercase: I've included the perl scripts to do so in
 the commit messaages.

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


More information about the tor-bugs mailing list