summaryrefslogtreecommitdiff
path: root/src/common/torlog.h
diff options
context:
space:
mode:
authorOla Bini <ola@olabini.se>2016-01-12 14:29:21 -0500
committerOla Bini <ola@olabini.se>2016-01-13 10:35:05 -0500
commit0bfa616e2e0ea7425801142e7faf7bca020f4361 (patch)
treefb0def3aecb4d408fd8284596e122806501f80b5 /src/common/torlog.h
parentce953b864b25d89ecd0c4441114cab50e394a7ef (diff)
downloadtor-0bfa616e2e0ea7425801142e7faf7bca020f4361.tar.gz
tor-0bfa616e2e0ea7425801142e7faf7bca020f4361.zip
Remove a small memory leak in log callback setup
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r--src/common/torlog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h
index 3e8667895f..f72263c85f 100644
--- a/src/common/torlog.h
+++ b/src/common/torlog.h
@@ -138,6 +138,7 @@ int add_file_log(const log_severity_list_t *severity, const char *filename,
int add_syslog_log(const log_severity_list_t *severity,
const char* syslog_identity_tag);
#endif
+void remove_log_callback(void);
int add_callback_log(const log_severity_list_t *severity, log_callback cb);
void logs_set_domain_logging(int enabled);
int get_min_log_level(void);
@@ -241,4 +242,3 @@ MOCK_DECL(STATIC void, logv, (int severity, log_domain_mask_t domain,
# define TOR_TORLOG_H
#endif
-