From fa0d24286b1dac3959c338f6b76fc15dbe1559e5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 8 Dec 2017 10:21:12 -0500 Subject: Convert remaining function (mostly static) to new free style --- src/or/hs_circuitmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/or/hs_circuitmap.c') diff --git a/src/or/hs_circuitmap.c b/src/or/hs_circuitmap.c index 97d6053e9b..e3d364d7cd 100644 --- a/src/or/hs_circuitmap.c +++ b/src/or/hs_circuitmap.c @@ -106,9 +106,12 @@ hs_token_new(hs_token_type_t type, size_t token_len, return hs_token; } +#define hs_token_free(val) \ + FREE_AND_NULL(hs_token_t, hs_token_free_, (val)) + /** Free memory allocated by this hs_token. */ static void -hs_token_free(hs_token_t *hs_token) +hs_token_free_(hs_token_t *hs_token) { if (!hs_token) { return; -- cgit v1.2.3-54-g00ecf