diff options
Diffstat (limited to 'src/common/procmon.h')
-rw-r--r-- | src/common/procmon.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/procmon.h b/src/common/procmon.h index 49ead24092..63777e4111 100644 --- a/src/common/procmon.h +++ b/src/common/procmon.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011-2016, The Tor Project, Inc. */ +/* Copyright (c) 2011-2017, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** @@ -27,7 +27,9 @@ tor_process_monitor_t *tor_process_monitor_new(struct event_base *base, tor_procmon_callback_t cb, void *cb_arg, const char **msg); -void tor_process_monitor_free(tor_process_monitor_t *procmon); +void tor_process_monitor_free_(tor_process_monitor_t *procmon); +#define tor_process_monitor_free(procmon) \ + FREE_AND_NULL(tor_process_monitor_t, tor_process_monitor_free_, (procmon)) -#endif +#endif /* !defined(TOR_PROCMON_H) */ |