aboutsummaryrefslogtreecommitdiff
path: root/src/common/timers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/timers.h')
-rw-r--r--src/common/timers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/timers.h b/src/common/timers.h
index d4d4fb00a9..6c9594d31b 100644
--- a/src/common/timers.h
+++ b/src/common/timers.h
@@ -17,7 +17,8 @@ void timer_get_cb(const tor_timer_t *t,
timer_cb_fn_t *cb_out, void **arg_out);
void timer_schedule(tor_timer_t *t, const struct timeval *delay);
void timer_disable(tor_timer_t *t);
-void timer_free(tor_timer_t *t);
+void timer_free_(tor_timer_t *t);
+#define timer_free(t) FREE_AND_NULL(timer, (t))
void timers_initialize(void);
void timers_shutdown(void);