diff options
Diffstat (limited to 'src/or/protover.h')
-rw-r--r-- | src/or/protover.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/protover.h b/src/or/protover.h index 83a728e626..8bbc2fc716 100644 --- a/src/or/protover.h +++ b/src/or/protover.h @@ -82,7 +82,9 @@ STATIC smartlist_t *parse_protocol_list(const char *s); STATIC char *encode_protocol_list(const smartlist_t *sl); STATIC const char *protocol_type_to_str(protocol_type_t pr); STATIC int str_to_protocol_type(const char *s, protocol_type_t *pr_out); -STATIC void proto_entry_free(proto_entry_t *entry); +STATIC void proto_entry_free_(proto_entry_t *entry); +#define proto_entry_free(entry) \ + FREE_AND_NULL(proto_entry_t, proto_entry_free_, (entry)) #endif /* !defined(HAVE_RUST) && defined(TOR_UNIT_TESTS) */ |