[tor-commits] [tor/master] Fix a typo in CodingStandards.md

nickm at torproject.org nickm at torproject.org
Tue Dec 12 14:07:54 UTC 2017


commit 7b591996636052dc6d58ff8bd78b48fd3394115a
Author: teor <teor2345 at gmail.com>
Date:   Tue Dec 12 12:32:14 2017 +1100

    Fix a typo in CodingStandards.md
    
    Closes #24596.
---
 doc/HACKING/CodingStandards.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/HACKING/CodingStandards.md b/doc/HACKING/CodingStandards.md
index 4b1bf4718..79a6a9f0c 100644
--- a/doc/HACKING/CodingStandards.md
+++ b/doc/HACKING/CodingStandards.md
@@ -358,7 +358,7 @@ Don't call this `abc_free_()` function directly -- instead, wrap it in a
 macro called `abc_free()`, using the `FREE_AND_NULL` macro:
 
     void abc_free_(abc_t *obj);
-    #define abc_free(obj) FREE_AND_NULL(abc_t, abc_free_, (abc))
+    #define abc_free(obj) FREE_AND_NULL(abc_t, abc_free_, (obj))
 
 This macro will free the underlying `abc_t` object, and will also set
 the object pointer to NULL.





More information about the tor-commits mailing list