From 69e6c3c7cdaeabbe31f66fffe9606cb6ee2ec8ee Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 20 Apr 2016 10:41:27 +0200 Subject: Add log_fini() function to release all memory allocated by logging framework This is e.g. quite useful to call at the end of test code, in order to show that all memory allocated actually is released before exit(). --- include/osmocom/core/logging.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index e51487b5..31934111 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -214,6 +214,7 @@ void logp2(int subsys, unsigned int level, const char *file, int line, int cont, const char *format, ...) __attribute__ ((format (printf, 6, 7))); int log_init(const struct log_info *inf, void *talloc_ctx); +void log_fini(void); int log_check_level(int subsys, unsigned int level); /* context management */ -- cgit v1.2.3